Skip to content

Commit 5fdb27f

Browse files
authored
Respect custom parameters in yiq-contrast-color function (#5453)
1 parent 5786c35 commit 5fdb27f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

_sass/minimal-mistakes/_mixins.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
$light: $yiq-contrasted-light-default,
7979
$threshold: $yiq-contrasted-threshold
8080
) {
81-
@return if(yiq-is-light($color, $threshold), $yiq-contrasted-dark-default, $yiq-contrasted-light-default);
81+
@return if(yiq-is-light($color, $threshold), $dark, $light);
8282
}
8383

8484
@mixin yiq-contrasted(
@@ -89,4 +89,4 @@
8989
) {
9090
background-color: $background-color;
9191
color: yiq-contrast-color($background-color, $dark, $light, $threshold);
92-
}
92+
}

0 commit comments

Comments
 (0)