diff --git a/packages/react-components/react-color-picker-preview/stories/src/ColorPicker/ColorAndSwatchPicker.stories.tsx b/packages/react-components/react-color-picker-preview/stories/src/ColorPicker/ColorAndSwatchPicker.stories.tsx index 4c702b95060c0..79c99d999e6c6 100644 --- a/packages/react-components/react-color-picker-preview/stories/src/ColorPicker/ColorAndSwatchPicker.stories.tsx +++ b/packages/react-components/react-color-picker-preview/stories/src/ColorPicker/ColorAndSwatchPicker.stories.tsx @@ -94,14 +94,19 @@ export const ColorAndSwatchPickerExample = () => { } }, [colorFocusTarget]); + const ariaAttributes = { + 'aria-label': 'ColorPicker', + 'aria-roledescription': '2D slider', + }; + return (
- +
- - + +
diff --git a/packages/react-components/react-color-picker-preview/stories/src/ColorPicker/ColorPickerPopup.stories.tsx b/packages/react-components/react-color-picker-preview/stories/src/ColorPicker/ColorPickerPopup.stories.tsx index 3b1b43a2bd410..05bfa4045c5d3 100644 --- a/packages/react-components/react-color-picker-preview/stories/src/ColorPicker/ColorPickerPopup.stories.tsx +++ b/packages/react-components/react-color-picker-preview/stories/src/ColorPicker/ColorPickerPopup.stories.tsx @@ -49,6 +49,11 @@ export const ColorPickerPopup = () => { const [popoverOpen, setPopoverOpen] = React.useState(false); + const ariaAttributes = { + 'aria-label': 'ColorPicker', + 'aria-roledescription': '2D slider', + }; + return ( <> setPopoverOpen(data.open)}> @@ -58,11 +63,11 @@ export const ColorPickerPopup = () => { - +
- - + +
diff --git a/packages/react-components/react-color-picker-preview/stories/src/ColorPicker/ColorPickerShape.stories.tsx b/packages/react-components/react-color-picker-preview/stories/src/ColorPicker/ColorPickerShape.stories.tsx index 89349528ca0f0..2acee46f91ccd 100644 --- a/packages/react-components/react-color-picker-preview/stories/src/ColorPicker/ColorPickerShape.stories.tsx +++ b/packages/react-components/react-color-picker-preview/stories/src/ColorPicker/ColorPickerShape.stories.tsx @@ -35,13 +35,18 @@ export const ColorPickerShape = () => { const handleChange: ColorPickerProps['onColorChange'] = (_, data) => setColor({ ...data.color, a: data.color.a ?? 1 }); + const ariaAttributes = { + 'aria-label': 'ColorPicker', + 'aria-roledescription': '2D slider', + }; + return (

Rounded (default)

- - - + + +

Square (default)