Skip to content

Prevent breadcrumb separators from being announced by screen readers#517

Closed
alexisreytech wants to merge 3 commits intomainfrom
alexis/breadcrumb-separators
Closed

Prevent breadcrumb separators from being announced by screen readers#517
alexisreytech wants to merge 3 commits intomainfrom
alexis/breadcrumb-separators

Conversation

@alexisreytech
Copy link
Copy Markdown
Contributor

Remove default breadcrumb pseudo-element and replace it with a span that uses "aria-hidden" for slash character. Fixes #405

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 20, 2026

Deploy Preview for accessiblecommunity canceled.

Name Link
🔨 Latest commit afd1057
🔍 Latest deploy log https://app.netlify.com/projects/accessiblecommunity/deploys/69c3fa57635d3f0008dec838

Copy link
Copy Markdown
Contributor

@brian-montgomery brian-montgomery left a comment

Choose a reason for hiding this comment

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

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).

alexisreytech and others added 2 commits March 25, 2026 10:07
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Breadcrumb Visual Separators Announced by Screen Readers

2 participants