@nypl/design-system-react-components 4.0.1-rc → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,6 +10,9 @@ export interface MenuProps extends BoxProps {
|
|
|
10
10
|
showSelectionAsLabel?: boolean;
|
|
11
11
|
/** Used to set the highlight color for the current item. The values correspond with the NYPL section colors */
|
|
12
12
|
highlightColor?: SectionTypes;
|
|
13
|
+
/** Optional boolean value used to pass the labelText as the button element's aria-label.
|
|
14
|
+
* If false, the aria-label will be built from the labelText and the selected item. */
|
|
15
|
+
labelAsAriaLabel?: boolean;
|
|
13
16
|
/** Required string used to set the label text for the button element. If showLabel is false,
|
|
14
17
|
* this value is instead used to set an aria-label attribute on the button. The labelText prop is
|
|
15
18
|
* required for accessibility compliance. */
|