- commit
- 23ac7218ef11dc61c27e9bb83d2a61b063ef3cc2
- parent
- 3173a3274cdadec97d16490acc1d3ce2de020e1c
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2018-03-29 07:45
contrast: return color in contrast-check
Diffstat
| M | sass/contrast.scss | 3 | ++- |
1 files changed, 2 insertions, 1 deletions
diff --git a/sass/contrast.scss b/sass/contrast.scss
@@ -182,11 +182,12 @@ $planifolia-contrast-light-default: white !default; 182 182 /// @param {color} $color 183 183 /// @param {number} $threshold [4.5] 184 184 /// (can also be 'AA', 'AALG', 'AAA', or 'AAALG') -1 185 /// @return {color} unchanged $color 185 186 @function contrast-check($base, $color, $threshold: 4.5) { 186 187 $threshold: _pf-threshold($threshold); 187 188 $contrast: contrast($base, $color); 188 189 @if $contrast < $threshold { 189 190 @warn 'contrast #{$contrast} between #{$base} and #{$color} too low!'; 190 191 }191 -1 @return null;-1 192 @return $color; 192 193 }