Breadcrumbs text and default links fail contrast ratio
See original GitHub issuehttps://v5.getbootstrap.com/docs/5.0/components/breadcrumb/
The active text/separator for breadcrumbs uses #6c757d
on #e9ecef
with a contrast ratio of 4:1. The default links in breadcrumbs use #0d6efd
on #e9ecef
with a contrast ratio of 3.8:1.
bumping the text/separator from $gray-600
to $gray-700
(#495057
) shoots up the contrat to 6.9:1. For the links, however, there’s very little wiggle room … not sure how/if that can be tackled - #0d6efd
has a ratio of 4.5:1 only against pure white, so even lightening the breadcrumbs background a bit won’t help
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
G183: Using a contrast ratio of 3:1 with surrounding text ... - W3C
For example, scattered words in text may be hypertext links that are identified only by a difference in color with surrounding text. This...
Read more >Breadcrumb | U.S. Web Design System (USWDS) - Digital.gov
Breadcrumbs allow a user to navigate “up” to a parent section instead of ... Default uses the default link settings calculated from your...
Read more >Evaluating Color and Contrast – How hard can it be? - WebAIM
Testing contrast and use of color is one of the most deceptively difficult tasks in a web accessibility evaluation.
Read more >Optimizing for Accessibility + SEO: Formatting & Link Overlaps
Hidden text method. Who can see the default content with each method? Sighted visitors. Screen readers. Google* (links are examples of ...
Read more >Warn users about contrast problems when using the color ...
Themes can specify any number of default fields to which colors can be ... that calculates the luminosity difference of the text and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think I suggested that somewhere. Honestly I’d drop both background and borders, to simplify theming.
Regarding the CSS custom property, we might do as in another place, using an unassigned custom property and our Sass variables as a fallback: