Skip to content

Commit

Permalink
[NO-TICKET] Clean up prop definitions for the release (#2670)
Browse files Browse the repository at this point in the history
Clean up prop definitions for the release
  • Loading branch information
pwolfert authored Sep 12, 2023
1 parent 5eefa5c commit 3124e2c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/design-system/src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,20 @@ export interface BaseDropdownProps extends Omit<FormFieldProps, 'id'> {
* for a controlled component; otherwise, set `defaultValue`.
*/
value?: DropdownValue;
/**
* Customize the default status messages announced to screen reader users via
* aria-live during certain interactions.
* @deprecated This option is not currently supported.
* @hide-prop [Deprecated]
*/
getA11yStatusMessage?: any;
/**
* Customize the default status messages announced to screen reader users via
* aria-live when a selection is made.
* @deprecated This option is not currently supported.
* @hide-prop [Deprecated]
*/
getA11ySelectionMessage?: any;
}

type OptionsOrChildren =
Expand Down Expand Up @@ -132,6 +146,8 @@ export const Dropdown: React.FC<DropdownProps> = (props: DropdownProps) => {
defaultValue,
value,
inputRef,
getA11yStatusMessage,
getA11ySelectionMessage,
...extraProps
} = props;

Expand Down

0 comments on commit 3124e2c

Please sign in to comment.