Skip to content

Conversation

@AdminAdi
Copy link
Contributor

@AdminAdi AdminAdi commented Nov 7, 2025

Closes: #4933

Updates the luminance calculation constant from 0.03928 to 0.04045 in lib/commons/color/get-contrast.js to align with the corrected WCAG 2.2 standard. While the practical impact on contrast ratios is minimal, this change ensures standards compliance with the current WCAG guidelines.

@AdminAdi AdminAdi requested a review from a team as a code owner November 7, 2025 17:39
@CLAassistant
Copy link

CLAassistant commented Nov 7, 2025

CLA assistant check
All committers have signed the CLA.

@WilcoFiers WilcoFiers changed the title Replaced luminance threshold constant 0.03928 with 0.04045 fix: Replaced luminance threshold constant 0.03928 with 0.04045 Nov 10, 2025
@WilcoFiers WilcoFiers changed the title fix: Replaced luminance threshold constant 0.03928 with 0.04045 fix: replaced luminance threshold constant 0.03928 with 0.04045 Nov 10, 2025
Copy link
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thank you for the contribution @AdminAdi

For the books: I reviewed this PR for security.

@WilcoFiers WilcoFiers merged commit 316967d into dequelabs:develop Nov 10, 2025
24 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Correct axe-core luminance number

3 participants