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.
In this PR, I added a few changes to assist with keyboard accessibility and general usage of the Skin Tone Picker.
1 - Unrelated: Adds an aria-label to the Clear Search "x" button
2 - Adds functionality to persist selected skin tone in
localStorage
3 - Allows a user to tab into the Skin Tone Picker
4 - Adds a prop,
fanOutDirection
to the<SkinTonePicker />
component to maintain the default fan-out behavior - which keeps the selected tone in-place and fans all remaining colors to to the left - and adds an option to specify the opposite, where colors will fan out to the right of the selected tone. The goal here was to aid with tab-ability and not interrupt the left --> right tab flow.skin_tone_accessibility.mov