diff options
| author | Patrick H. Lauke <[email protected]> | 2022-12-27 14:13:38 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-27 14:13:38 +0000 |
| commit | eb4819474de3d1dd3bc1a3d6df052fc9c35a9b2b (patch) | |
| tree | d1614b3d37b887c3c6c9323c35107861aa9190d1 | |
| parent | 39c51aa3eb50cc0b74895cf36038b658bd579d18 (diff) | |
| download | bootstrap-eb4819474de3d1dd3bc1a3d6df052fc9c35a9b2b.tar.xz bootstrap-eb4819474de3d1dd3bc1a3d6df052fc9c35a9b2b.zip | |
Update colour contrast formula with new constant from WCAG 2.2 (#37731)
See https://github.com/w3c/wcag/pull/1780
Closes #37022
| -rw-r--r-- | scss/_functions.scss | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/_functions.scss b/scss/_functions.scss index 26c953bae..90296586b 100644 --- a/scss/_functions.scss +++ b/scss/_functions.scss @@ -188,7 +188,7 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003 ); @each $name, $value in $rgb { - $value: if(divide($value, 255) < .03928, divide(divide($value, 255), 12.92), nth($_luminance-list, $value + 1)); + $value: if(divide($value, 255) < .04045, divide(divide($value, 255), 12.92), nth($_luminance-list, $value + 1)); $rgb: map-merge($rgb, ($name: $value)); } |
