Skip to content

Commit deb5da5

Browse files
committed
feat(ui-color-picker): add comment
1 parent 18a3e44 commit deb5da5

File tree

1 file changed

+2
-0
lines changed
  • packages/ui-color-picker/src/ColorPreset

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ class ColorPreset extends Component<ColorPresetProps, ColorPresetState> {
295295
element &&
296296
element.firstElementChild instanceof HTMLButtonElement
297297
) {
298+
// The tooltip and the button's aria-label has the same text content. This is redundant for screenreaders.
299+
// Aria-describedby is removed to bypass reading the tooltip twice
298300
element.firstElementChild.removeAttribute('aria-describedby')
299301
}
300302
}}

0 commit comments

Comments
 (0)