Merged
Conversation
1. aria-label for ColorArea inputs on desktop are simply "Color picker." 2. externally set aria-label is prepended to the default accessibility name so that "Color picker" is always included as part of the accessibility name. 3. On first focus, when interacting with the mouse, and on blur, inputs will have aria-valuetext set to channel name and value for both channels. 4. After a keyboard interaction, aria-valuetext will be the channel name and value for the channel that changed. 5. We still use title to provide all three channel names and values as help text/accessibility description. When we include a color name string, it should be prepended to this. 6. Remove x/y translation string, because it is no longer needed.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
added 3 commits
March 21, 2022 13:18
… zero To better illustrate xChannel and yChannel orientation, initialize RGB stories with both the xChannel and yChannels set to 255 and the zChannel set to 0.
In order to reduce screen reader verbosity, remove `title` prop, used to announce values for each channel in the color, until such time we have a color naming API.
So that only a single "2d slider" control shows up when listing form elements for screen readers, add aria-hidden="true" to the unfocused input when the value has not changed via the keyboard, but remove aria-hidden to reveal the input for each channel when the value has changed with the keyboard. Refactor aria-valuetext so that yChannel always comes before yChannel.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Robert Snow <rsnow@adobe.com>
This comment was marked as outdated.
This comment was marked as outdated.
|
Build successful! 🎉 |
snowystinger
previously approved these changes
Apr 19, 2022
Member
snowystinger
left a comment
There was a problem hiding this comment.
lgtm tested in Safari with VO
LFDanLu
reviewed
Apr 22, 2022
Member
LFDanLu
left a comment
There was a problem hiding this comment.
A question and a note, but I'm happy for this to go in as is. I'll approve the PR based off the discussion of the question
Per #2967 (comment), include both channels in aria-valuetext on mobile, and label both inputs as a "Color Picker" and "2d slider" so that users can understand it to interact differently than a regular slider. Double Tap and hold allows the user to drag the thumb. On Talkback, value text for both channels gets announced intermittently while dragging and when dragging stops. With VoiceOver for iOS, the value text will not be announced as the value changes, but if the user single taps after finishing the drag, value text for both channels will announce. Per #2967 (comment), update tests to include hidden slider in getAllByRole query.
|
Build successful! 🎉 |
LFDanLu
approved these changes
Apr 22, 2022
Member
LFDanLu
left a comment
There was a problem hiding this comment.
LGTM, confirmed the new mobile behavior. Thanks for the quick update!
snowystinger
approved these changes
Apr 22, 2022
|
Build successful! 🎉 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
5. We still use title to provide all three channel names and values as help text/accessibility description. When we include a color name string, it should be prepended to this.titleattribute to announce the full RGB/HSL/HSB value. Deferring until we have an API for providing color name.aria-hidden="true"to the unfocused input when the value has not changed via the keyboard, but removearia-hiddento reveal the input for each channel when the value has changed with the keyboard.Closes #2901
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project:
Adobe/Accessibility