Skip to content

Commit 9d4cc91

Browse files
committed
Fixes $form-control-select-arrow-image value
1 parent 08c978d commit 9d4cc91

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/scss/colors/schemes/dark/_variables.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@ $component-backdrop-background-color-dark: hsla(180, 1%, 25%, 0.9) !default;
4141
$label-background-color-dark: $gray-500 !default;
4242

4343
// Forms
44-
$form-control-select-arrow-image-dark: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="#{$text-muted-dark}" viewBox="0 0 512 512"><path d="M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"/></svg>');
44+
$form-control-select-arrow-image-fill-dark: 'rgba(' + red($text-muted-dark) + ', ' + green($text-muted-dark) + ', ' + blue($text-muted-dark) +
45+
', ' + alpha($text-muted-dark) + ')';
46+
$form-control-select-arrow-image-dark: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="#{$form-control-select-arrow-image-fill-dark}" viewBox="0 0 512 512"><path d="M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"/></svg>');

src/scss/colors/schemes/light/_variables.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ $component-box-shadow-color-active: rgba($black, 0.25) !default;
3939
$component-outline-color: rgba($black, 0.1) !default;
4040

4141
// Forms
42-
$form-control-select-arrow-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="#{$text-muted}" viewBox="0 0 512 512"><path d="M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"/></svg>');
42+
$form-control-select-arrow-image-fill: 'rgba(' + red($text-muted) + ', ' + green($text-muted) + ', ' + blue($text-muted) + ', ' +
43+
alpha($text-muted) + ')';
44+
$form-control-select-arrow-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="#{$form-control-select-arrow-image-fill}" viewBox="0 0 512 512"><path d="M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"/></svg>');

src/scss/forms/_variables.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ $form-switch-active-color-hover: var(--component-background-color-hover, #{$comp
3131
$form-switch-size: $font-size-base * 1.125 !default;
3232
$form-switch-inner-padding: 2px !default;
3333

34+
$form-control-select-arrow-image-fill: 'rgba(' + red($text-muted) + ', ' + green($text-muted) + ', ' + blue($text-muted) + ', ' +
35+
alpha($text-muted) + ')' !default;
3436
$form-control-select-arrow-image: var(
3537
--form-control-select-arrow-image,
36-
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="#{$form-control-color-muted}" viewBox="0 0 512 512"><path d="M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"/></svg>')
37-
);
38+
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="#{$form-control-select-arrow-image-fill}" viewBox="0 0 512 512"><path d="M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"/></svg>')
39+
) !default;
3840

3941
@import 'controls/slider/variables';

0 commit comments

Comments
 (0)