Commit 316967d
authored
fix: replaced luminance threshold constant 0.03928 with 0.04045 (#4934)
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.1 parent d0e6d8e commit 316967d
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
0 commit comments