Skip to content

Commit 1b12ca2

Browse files
committed
refactor: update scss variables
1 parent 7f053bd commit 1b12ca2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

scss/_alert.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
$border: var(--#{$variable-prefix}alert-#{$state}-border-color, map-get($map, "border"));
4949
$color: var(--#{$variable-prefix}alert-#{$state}-color, map-get($map, "color"));
5050
$link-color: var(--#{$variable-prefix}alert-#{$state}-link-color, map-get($map, "link-color"));
51-
// @if (contrast-ratio($background, $color) < $min-contrast-ratio) {
52-
// $color: mix($value, color-contrast($background), abs($alert-color-scale));
53-
// }
51+
@if (contrast-ratio(map-get($map, "background"), map-get($map, "color")) < $min-contrast-ratio) {
52+
$color: var(--#{$variable-prefix}alert-#{$state}-color, mix(map-get($map, "color"), color-contrast(map-get($map, "background")), abs($alert-color-scale)));
53+
}
5454
.alert-#{$state} {
5555
@include alert-variant($background, $border, $color, $link-color);
5656
}

scss/_buttons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
vertical-align: middle;
1515
cursor: if($enable-button-pointers, pointer, null);
1616
user-select: none;
17-
background-color: transparent;
17+
background-color: var(--#{$variable-prefix}btn-bg, transparent);
1818
border: $btn-border-width solid transparent;
1919
@include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-border-radius);
2020
@include transition($btn-transition);

scss/forms/_form-range.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
width: $form-range-thumb-width;
2929
height: $form-range-thumb-height;
3030
margin-top: ($form-range-track-height - $form-range-thumb-height) * .5; // Webkit specific
31-
@include gradient-bg($form-range-thumb-bg);
31+
@include gradient-bg(var(--#{$variable-prefix}form-range-thumb-bg, $form-range-thumb-bg));
3232
border: $form-range-thumb-border;
3333
@include border-radius($form-range-thumb-border-radius);
3434
@include box-shadow($form-range-thumb-box-shadow);

0 commit comments

Comments
 (0)