Prevent breadcrumb separators from being announced by screen readers#517
Prevent breadcrumb separators from being announced by screen readers#517alexisreytech wants to merge 3 commits intomainfrom
Conversation
…hat uses "aria-hidden" for slash character.
✅ Deploy Preview for accessiblecommunity canceled.
|
There was a problem hiding this comment.
Thank you, Alexis. This works.
However, with this solution, the dividers are selectable and highlightable by the cursor, because they are standard text. We could add some CSS/JS to handle that, but that seems a little messy.
I did a little research to figure out if there is a different way to handle this: a content alt separator. Apparently, you can add an alt text to the CSS content property.
To implement this, all we should need to do is define the alt text with the content property:
$breadcrumb-divider: "/" / "";The part after the slash is the alt text. It looks a little confusing, but it does make sense. I did a quick test and it seemed to work with VoiceOver.
Tagging @racecn, @courtneylinder and @rachaelbradley to get their thoughts on this. Can anyone test to see if it works in JAWS or other assistive technologies?
(Note: I'm going to post a similar comment on the issue).
Bumps the npm_and_yarn group with 1 update in the /astro directory: [h3](https://github.com/h3js/h3). Updates `h3` from 1.15.5 to 1.15.8 - [Release notes](https://github.com/h3js/h3/releases) - [Changelog](https://github.com/h3js/h3/blob/main/CHANGELOG.md) - [Commits](h3js/h3@v1.15.5...v1.15.8) --- updated-dependencies: - dependency-name: h3 dependency-version: 1.15.8 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…essiblecommunity/accessiblecommunity.github.io into alexis/breadcrumb-separators
Remove default breadcrumb pseudo-element and replace it with a span that uses "aria-hidden" for slash character. Fixes #405