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

Add breadcrumb component #292

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Add breadcrumb component #292

merged 1 commit into from
Dec 9, 2024

Conversation

florianduros
Copy link
Member

@florianduros florianduros commented Dec 9, 2024

Figma design

To avoid the / separator to be read by a screen reader, I have multiple solutions:

  • Add a <span aria-hidden={true}>/</span>. => I don't like to use an extra span for the separator, to keep the dom simple
  • Use the alternative text content: "/" / "" instead of the border. => In the accessiblity tree of Chrome, the text is still appearing as static text: ""
  • Use a rotated border

Copy link

cloudflare-workers-and-pages bot commented Dec 9, 2024

Deploying compound-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4296ddb
Status: ✅  Deploy successful!
Preview URL: https://8eb0c3b6.compound-web.pages.dev
Branch Preview URL: https://florianduros-breadcrumb.compound-web.pages.dev

View logs

@florianduros florianduros force-pushed the florianduros/breadcrumb branch 3 times, most recently from dbb293c to de2aefe Compare December 9, 2024 14:27
@florianduros florianduros marked this pull request as ready for review December 9, 2024 14:30
@florianduros florianduros requested a review from a team as a code owner December 9, 2024 14:30
@florianduros florianduros requested review from dbkr and robintown and removed request for a team December 9, 2024 14:30
@florianduros florianduros force-pushed the florianduros/breadcrumb branch from de2aefe to 4296ddb Compare December 9, 2024 15:22
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

Would it be so bad if the '/' was read out?

@florianduros
Copy link
Member Author

@dbkr Not so bad but a little pain for screen readers :) It's easy to avoid

@florianduros florianduros merged commit 4f4aa7a into main Dec 9, 2024
7 checks passed
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.

2 participants