You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the WCAG 2.1 Success Criterion 1.4.3 Contrast (Minimum) the visual presentation of text and images of text has a contrast ratio of at least 4.5:1 (i.e., >= 4.5), not strictly greater than (>).
However, in Bootstrap’s SCSS function color-contrast, the comparison is currently implemented as strictly greater than: @if $contrast-ratio > $min-contrast-ratio {
This excludes cases exactly equal to the WCAG minimum requirement, which could incorrectly trigger warnings or lead to unnecessary manual adjustments.
Proposed Fix:
Update the conditional to correctly reflect the WCAG standard: @if $contrast-ratio >= $min-contrast-ratio {