Skip to content
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

Adds aria-label to breadcrumb truncation toggle #1127

Merged
merged 2 commits into from
Jan 24, 2023

Conversation

MelSumner
Copy link
Contributor

πŸ“Œ Summary

If merged, this PR adds the missing aria-label attribute to the breadcrumb component's truncation button.

πŸ› οΈ Detailed description

Because the truncation toggle button has only an icon inside of it (hidden with aria-hidden=true), the button is required to have an aria-label to supply the button element with an accessible name.

This changes nothing that is visually rendered in the browser.

I've also added a test to make sure the aria-label is always there, just in case the code is refactored in the future.


πŸ‘€ Reviewer's checklist:

  • +1 Percy if applicable
  • Confirm that PR has a changelog update via Changesets if needed

πŸ’¬ Please consider using conventional comments when reviewing this PR.

@MelSumner MelSumner requested a review from a team January 24, 2023 14:28
@vercel
Copy link

vercel bot commented Jan 24, 2023

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated
hds-components βœ… Ready (Inspect) Visit Preview Jan 24, 2023 at 2:31PM (UTC)
hds-flight-website βœ… Ready (Inspect) Visit Preview Jan 24, 2023 at 2:31PM (UTC)
hds-website βœ… Ready (Inspect) Visit Preview Jan 24, 2023 at 2:31PM (UTC)

@vercel vercel bot temporarily deployed to Preview – hds-flight-website January 24, 2023 14:30 Inactive
Copy link
Contributor

@didoo didoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ‘

@vercel vercel bot temporarily deployed to Preview – hds-components January 24, 2023 14:30 Inactive
@MelSumner MelSumner merged commit b90761d into main Jan 24, 2023
@MelSumner MelSumner deleted the melsumner/a11y-component-fix-breadcrumbs branch January 24, 2023 15:07
@hashibot-hds hashibot-hds mentioned this pull request Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants