diff options
author | Patrick H. Lauke <redux@splintered.co.uk> | 2022-06-03 12:42:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 12:42:49 +0300 |
commit | 3102b4a3e9a7af8737b5330ccf5c6879022577b4 (patch) | |
tree | d33ac4d3b5818e495a85fd00553d5e0f0bc619ed /scss | |
parent | 6d5a70340d3b4af0929de734f5fd521948ae3a0e (diff) |
Update some WCAG links, expand sass.md contrast explanation (#36489)
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_functions.scss | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scss/_functions.scss b/scss/_functions.scss index 883375bf81..855768bef2 100644 --- a/scss/_functions.scss +++ b/scss/_functions.scss @@ -177,9 +177,9 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003 @return if($l1 > $l2, divide($l1 + .05, $l2 + .05), divide($l2 + .05, $l1 + .05)); } -// Return WCAG2.0 relative luminance -// See https://www.w3.org/WAI/GL/wiki/Relative_luminance -// See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests +// Return WCAG2.1 relative luminance +// See https://www.w3.org/TR/WCAG/#dfn-relative-luminance +// See https://www.w3.org/TR/WCAG/#dfn-contrast-ratio @function luminance($color) { $rgb: ( "r": red($color), |