-
Notifications
You must be signed in to change notification settings - Fork 217
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
docs: Improve the "accessible" example of loading dots #2673
docs: Improve the "accessible" example of loading dots #2673
Conversation
This PR is not fully resolving issue #2668. This component hasn't been modified to support consumers passing in their own colors to the |
Passing run #7196 ↗︎
Details:
Review all test suite changes for PR #2673 ↗︎ |
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.
I have small suggestions, but otherwise PR looks good
Co-authored-by: Raisa Primerova <48605821+RayRedGoose@users.noreply.github.com>
Missed createStyles in render function
Co-authored-by: Nicholas Boll <nicholas.boll@gmail.com>
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.
👍
Summary
The Soap400 color for the
LoadingDots
component does not meet WCAG guidelines for non-text contrast while used on light background colors. For this example, I used a darker background color that allows Soap400 to meet the minimum 3:1 contrast ratio. I also added better screen reader support with theAriaLiveRegion
component that both lets users know about the loading status, and when loading has completed.Release Category
Documentation
Release Note
Accessible
LoadingDots
example has been updated, by changing background to a darker color that allowssoap400
to meet the minimum 3:1 contrast ratio and adding better screen reader support with theAriaLiveRegion
component.Checklist
ready for review
has been added to PRFor the Reviewer
Where Should the Reviewer Start?
The "Accessible" example of the
LoadingDots
component, and the storybook mdx file.Areas for Feedback? (optional)
Testing Manually
NOTE: The term "loading" is coming from an
aria-label
string on thestatus
region. The order in which "loading" is described might vary based on screen reader.Screenshots or GIFs (if applicable)
I used licorice300 for a background color of the
LoadingDots
accessible example.