GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bug: Fix Incorrect comparison in color-contrast function by viniciusvts · Pull Request #41551 · twbs/bootstrap

Conversation

@viniciusvts

@viniciusvts viniciusvts commented Jun 17, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@viniciusvts
bug: Incorrect comparison in color-contrast function
0d4f703
Refs: 41543
Closes: 41543
@viniciusvts
viniciusvts requested a review from a team as a code owner June 17, 2025 12:55
@julien-deramond

julien-deramond commented Jun 17, 2025

Copy link
Copy Markdown
Member

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@julien-deramond julien-deramond added css Sass sources or compiled CSS accessibility Keyboard, screen readers, contrast, ARIA awaiting-reply Waiting on the author; an issue closes after 14 days without reply labels Jun 17, 2025
@julien-deramond julien-deramond mentioned this pull request Jul 2, 2025
Fix color-contrast() function for WCAG 2.1 compliance #41585
Merged
@julien-deramond

julien-deramond commented Jul 2, 2025

Copy link
Copy Markdown
Member

Closing as superseded by #41585

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@julien-deramond julien-deramond closed this Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Incorrect comparison in color-contrast function (should be >= instead of >)

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@viniciusvts @julien-deramond
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.