-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: DAYL-114 Update a11y docn for the numeric input components #5028
feat: DAYL-114 Update a11y docn for the numeric input components #5028
Conversation
Thanks for the PR! 🎉 We've deployed an automatic preview for this PR - you can see your changes here:
Note The build needs to finish before your changes are deployed. |
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.
Both input-number
and input-percent
have labelHidden
which mentions aria-label
. We likely want their description to be more along the lines of the date inputs ("Hides the label visually. Hidden labels are still read by screen readers so make sure to set an appropriate label.")
Other than the few comments LGTM!
Sounds good and makes sense! I'm wondering if |
Definitely out of scope for this PR. It's an interesting thought. Basically the only reason |
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.
Looks good to me Chris, thanks!
The first bullet in the Accessibility section made me want to know more about why it was setup that way, or how it affects the screen reader experience. Maybe we could add more context? Something like this:
When using unit make sure to also set unit-label since the unit itself is hidden from screen reader users; the unit-label is appended to the label off-screen so that it's announced by screen readers and hidden from sighted users.
8452ac8
to
a525258
Compare
…ithub.com/BrightspaceUI/core into clabatt/DAYL-114-a11y-docn-numeric-inputs
🎉 This PR is included in version 3.51.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Context for DAYL-114: Numeric Inputs > Improve a11y doc'n
The purpose of this PR is to update the documentation
d2l-input-number
andd2l-input-percent
components to include more a11y-based information. Fortunately a bit of the work was already done for both of these components in this PR, when thelabelled-mixin
was changed to include the same a11y documentation that was needed here.