Skip to content

Commit 7518383

Browse files
committed
fix(ui-color-picker): add hex to aria-label
INSTUI-4273
1 parent 359b73c commit 7518383

File tree

1 file changed

+3
-1
lines changed
  • packages/ui-color-picker/src/ColorPreset

1 file changed

+3
-1
lines changed

packages/ui-color-picker/src/ColorPreset/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,9 @@ class ColorPreset extends Component<ColorPresetProps, ColorPresetState> {
266266
cursor={this.props.disabled ? 'not-allowed' : 'auto'}
267267
as="button"
268268
{...(selectOnClick ? { onClick: () => this.props.onSelect(color) } : {})}
269-
{...(this.isSelectedColor(color) ? { 'aria-label': 'selected' } : {})}
269+
{...(this.isSelectedColor(color)
270+
? { 'aria-label': color + ' selected' }
271+
: { 'aria-label': color })}
270272
>
271273
<div>
272274
<ColorIndicator color={color} shape="rectangle" role="presentation" />

0 commit comments

Comments
 (0)