question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breadcrumbs text and default links fail contrast ratio

See original GitHub issue

https://v5.getbootstrap.com/docs/5.0/components/breadcrumb/

contrast-bootstrap-breadcrumbs

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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ffooddcommented, Nov 6, 2020

I think I suggested that somewhere. Honestly I’d drop both background and borders, to simplify theming.

0reactions
ffooddcommented, Nov 25, 2020

Regarding the CSS custom property, we might do as in another place, using an unassigned custom property and our Sass variables as a fallback:

.breadcrumb-item + .breadcrumb-item::before {
  content: var(--bs-separator, #{$breadcrumb-separator)};
}
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found