-
Notifications
You must be signed in to change notification settings - Fork 44
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
SideNav
- A11y improvements
#2536
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Thank you for porting these over!
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.
We should check for usage of @ariaLabel
in <Hds::SideNav />
in our products before removing it. If no instances are found we should update the docs as well.
A more careful approach would be to keep the @ariaLabel
argument, update the getter to return this.args.ariaLabel
, and deprecate it.
@alex-ju I couldn't find uses of the (Search: https://github.com/search?q=org%3Ahashicorp+%22%3CHds%3A%3ASideNav+%22&type=code) |
Co-authored-by: Alex <[email protected]>
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.
Looking good! 🚀
📌 Summary
If merged, this PR makes a11y related improvements to the
SideNav
related to List::Title headers and the ToggleButton aria properties following work done in the deprioritizedAppSideNav
.🛠️ Detailed description
Implemented changes:
List::Title
to h3 & add visually hidden h2 to AppSideNav - Reference commentToggleButton
state & use aria-expanded - Reference comment🔗 External links
AppSideNav
- improvements for headers & aria (HDS-3897) #2463👀 Component checklist
💬 Please consider using conventional comments when reviewing this PR.