Skip to content

Commit

Permalink
fix(menu): add all props for OptionListProps (uber#4577)
Browse files Browse the repository at this point in the history
  • Loading branch information
leyanlo authored Oct 15, 2021
1 parent 14ab3e2 commit 9915760
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/menu/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ export interface OptionListProps extends BaseMenuPropsT {
resetMenu?: () => void;
$isHighlighted?: boolean;
$isFocused?: boolean;
renderAll?: boolean;
$disabled?: boolean;
'aria-disabled'?: boolean;
'aria-selected'?: boolean;
id?: string;
role?: string;
}
export const OptionList: React.FC<OptionListProps>;

Expand Down
10 changes: 10 additions & 0 deletions src/menu/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,16 @@ export type OptionListPropsT = {
$isFocused?: boolean,
/** Renders all menu content for SEO purposes regardless of menu state */
renderAll?: boolean,
/** Is the item disabled */
$disabled?: boolean,
/** Is the item disabled */
'aria-disabled'?: boolean,
/** Is the item selected */
'aria-selected'?: boolean,
/** Id of the item */
id?: string,
/** Accessibility role of the item */
role?: string,
};

export type OptionProfilePropsT = {
Expand Down

0 comments on commit 9915760

Please sign in to comment.