Skip to content

Commit 0d4f703

Browse files
committed
bug: Incorrect comparison in color-contrast function
Refs: 41543 Closes: 41543
1 parent e6eb77a commit 0d4f703

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scss/_functions.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
157157

158158
@each $color in $foregrounds {
159159
$contrast-ratio: contrast-ratio($background, $color);
160-
@if $contrast-ratio > $min-contrast-ratio {
160+
@if $contrast-ratio >= $min-contrast-ratio {
161161
@return $color;
162162
} @else if $contrast-ratio > $max-ratio {
163163
$max-ratio: $contrast-ratio;

0 commit comments

Comments
 (0)