Skip to content

Commit 5bc444f

Browse files
committed
Fix bootstrap yiq for better color contrast on buttons
1 parent d72afa8 commit 5bc444f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

server/assets/src/css/minified-custom.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/assets/src/logo.png

13.8 KB
Loading

server/assets/src/scss/variables/18182031_webapp_variable.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ $gray-800: if(lightness($black) < lightness($white), mix($black, $white, 80%), m
3939
$gray-900: if(lightness($black) < lightness($white), mix($black, $white, 90%), mix($white, $black, 90%));
4040

4141
// Adjusting YIQ contrast settings for better text contrast
42-
$yiq-contrasted-threshold: 45;
43-
$yiq-text-dark: $black !default;
44-
$yiq-text-light: $white !default;
42+
$yiq-contrasted-threshold: 180;
43+
$yiq-text-dark: if(lightness($black) < lightness($white), $black, $white);
44+
$yiq-text-light: if(lightness($black) < lightness($white), $white, $black);
4545

4646
$theme-colors: () !default;
4747
$theme-colors: map-merge(

0 commit comments

Comments
 (0)