GeezerVison is showing github.com — bug: Fix Incorrect comparison in color-contrast function by viniciusvts · Pull Request #41551 · twbs/bootstrap
Conversation
viniciusvts
commented
Jun 17, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Update the conditional to correctly reflect the WCAG standard: 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 (>).
Type of changes
- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Refactoring (non-breaking change)
- Breaking change (fix or feature that would change existing functionality)
Checklist
- I have read the contributing guidelines
- My code follows the code style of the project (using
npm run lint)
- My change introduces changes to the documentation
- I have updated the documentation accordingly
- I have added tests to cover my changes
- All new and existing tests passed
Refs: #41543
Closes: #41543
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Refs: 41543
Closes: 41543
|
Could you please provide some before-and-after examples, including comparisons with other tools that implement this WCAG algorithm? This would help us review the proposed update. Please note that the need for updating the algorithm has not yet been discussed in the corresponding issue.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Closing as superseded by #41585
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
accessibility
Keyboard, screen readers, contrast, ARIA
awaiting-reply
Waiting on the author; an issue closes after 14 days without reply
css
Sass sources or compiled CSS
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.