Index: lams_central/web/css/bootstrap/_functions.scss =================================================================== diff -u -rb7c92dbcfdb0469dbc0144190a201757f398e529 -ra90d0744dd0d09d1b04869e61ce1b66bf1ee3242 --- lams_central/web/css/bootstrap/_functions.scss (.../_functions.scss) (revision b7c92dbcfdb0469dbc0144190a201757f398e529) +++ lams_central/web/css/bootstrap/_functions.scss (.../_functions.scss) (revision a90d0744dd0d09d1b04869e61ce1b66bf1ee3242) @@ -109,7 +109,7 @@ // Replace `$search` with `$replace` in `$string` // Used on our SVG icon backgrounds for custom forms. // -// @author Hugo Giraudel +// @author Kitty Giraudel // @param {String} $string - Initial string // @param {String} $search - Substring to replace // @param {String} $replace ('') - New value @@ -177,9 +177,9 @@ @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), @@ -198,7 +198,7 @@ // Return opaque color // opaque(#fff, rgba(0, 0, 0, .5)) => #808080 @function opaque($background, $foreground) { - @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100); + @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%); } // scss-docs-start color-functions