-
Notifications
You must be signed in to change notification settings - Fork 860
[EuiColorPicker] Prevent duplicate color output for screen readers #8639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mgadewoll
merged 7 commits into
elastic:main
from
mgadewoll:colorpicker/8446-a11y-improvements
Apr 29, 2025
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0240d50
refactor(colorPicker): prevent duplicate screen reader output
mgadewoll a2624eb
refactor(colorPicker): add tooltips and improve accessible labels
mgadewoll 5b836a4
refactor(tooltip): prevent additional key stops when tooltip has disa…
mgadewoll dc7bd8c
test: update snapshots
mgadewoll 2b2ef0e
test(vrt): update reference images
mgadewoll ac2676f
chore: add changelog
mgadewoll 417ede0
chore: update changelog
mgadewoll File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file modified
BIN
-45 Bytes
(100%)
.../reference/chrome_desktop_Forms_EuiColorPicker_EuiColorPicker_High_Contrast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-232 Bytes
(99%)
.../chrome_desktop_Forms_EuiColorPicker_EuiColorPicker_High_Contrast_Dark_Mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4 Bytes
(100%)
...chrome_desktop_Forms_EuiColorPicker_EuiColorPicker_Inline_With_All_Elements.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+29 Bytes
(100%)
...i/reference/chrome_mobile_Forms_EuiColorPicker_EuiColorPicker_High_Contrast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-362 Bytes
(99%)
...e/chrome_mobile_Forms_EuiColorPicker_EuiColorPicker_High_Contrast_Dark_Mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+18 Bytes
(100%)
.../chrome_mobile_Forms_EuiColorPicker_EuiColorPicker_Inline_With_All_Elements.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| **Accessibility** | ||
|
|
||
| - Improved the accessibility of `EuiColorPicker` by: | ||
| - preventing duplicate color output for screen readers | ||
| - adding tooltips with visual color labels for the selected colors on the saturation and hue sliders | ||
| - updated accessible labels and announcements to be more descriptive | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-blocking question:
Is this note necessary here? Is the usage not working for VO specific for this component?
If not, and
EuiScreenReaderOnlydoesn't work globally for VO, I would add a note there (e.g.packages/eui/src/components/accessibility/screen_reader_only/screen_reader_only.tsx) and remove this comment.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The intention for the comment here was to ensure we don't update to
EuiScreenReaderLivein the future and break it 😅 I have not verified if that's a global issue so far, as it was outside of the scope for this issue.If you feel the comment is redundant, we can remove it. It's just meant as a safeguard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that I think about it: I actually did look at
EuiScreenReaderLivein VO as part of a different request last week and it worked as expected. So it might not beEuiScreenReaderLivespecific but the combination ofEuiScreenReaderOnlyandEuiScreenReaderLiveScreen.Recording.2025-04-24.at.11.44.11.mov