diff --git a/packages/react-core/src/components/Dropdown/DropdownToggleCheckbox.tsx b/packages/react-core/src/components/Dropdown/DropdownToggleCheckbox.tsx index e5d97184d5a..b3b0f42dbca 100644 --- a/packages/react-core/src/components/Dropdown/DropdownToggleCheckbox.tsx +++ b/packages/react-core/src/components/Dropdown/DropdownToggleCheckbox.tsx @@ -3,6 +3,7 @@ import styles from '@patternfly/react-styles/css/components/Dropdown/dropdown'; import { css } from '@patternfly/react-styles'; import { PickOptional } from '../../helpers/typeUtils'; import { getOUIAProps, OUIAProps, getDefaultOUIAId } from '../../helpers'; +import { Spinner } from '../Spinner'; export interface DropdownToggleCheckboxProps extends Omit, 'type' | 'onChange' | 'disabled' | 'checked'>, @@ -15,6 +16,8 @@ export interface DropdownToggleCheckboxProps isDisabled?: boolean; /** Flag to show if the checkbox is checked */ isChecked?: boolean | null; + /** @beta Flag to show if the checkbox is in progress */ + isInProgress?: boolean | null; /** Alternate Flag to show if the checkbox is checked */ checked?: boolean | null; /** A callback for when the checkbox selection changes */ @@ -25,6 +28,10 @@ export interface DropdownToggleCheckboxProps id: string; /** Aria-label of the checkbox */ 'aria-label': string; + /** @beta Text describing current loading status or progress */ + defaultProgressAriaValueText?: string; + /** @beta Aria-label for the default progress icon to describe what is loading */ + defaultProgressAriaLabel?: string; /** Value to overwrite the randomly generated data-ouia-component-id.*/ ouiaId?: number | string; /** Set the value of data-ouia-safe. Only set to true when the component is in a static state, i.e. no animations are occurring. At all other times, this value must be false. */ @@ -68,6 +75,9 @@ export class DropdownToggleCheckbox extends React.Component + ); + const text = children && ( ); return ( -