File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
themes/dark/variables/components Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,15 @@ select.form-control {
89
89
}
90
90
}
91
91
92
+ @-moz-document url-prefix() {
93
+ select .form-control option {
94
+ // Add background-color for elements in Firefox
95
+ @include themes ($form-theme-map , $create : parent) {
96
+ background-color : themes-get-value (" select-option-bg" );
97
+ }
98
+ }
99
+ }
100
+
92
101
// Make file inputs better match text inputs by forcing them to new lines.
93
102
.form-control-file ,
94
103
.form-control-range {
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ $input-plaintext-color__dt: $body-color__dt !default;
15
15
$input-group-addon-color__dt : $body-color__dt !default ;
16
16
$input-group-addon-bg__dt : rgba ($white , .09 ) !default ;
17
17
$input-group-addon-border-color__dt : rgba ($white , .09 ) !default ;
18
+ $select-option-bg__dt : $bg-elevation-8 !default ;
18
19
19
20
// stylelint-disable-next-line scss/dollar-variable-default
20
21
$form-theme-map : map-merge (
@@ -33,6 +34,7 @@ $form-theme-map: map-merge(
33
34
" input-group-addon-color" : $input-group-addon-color__dt ,
34
35
" input-group-addon-bg" : $input-group-addon-bg__dt ,
35
36
" input-group-addon-border-color" : $input-group-addon-border-color__dt ,
37
+ " select-option-bg" : $select-option-bg__dt
36
38
)
37
39
)
38
40
);
Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ $form-group-margin-bottom: 1rem !default;
140
140
$input-group-addon-color : $input-color !default ;
141
141
$input-group-addon-bg : $gray-100 !default ;
142
142
$input-group-addon-border-color : $input-border-color !default ;
143
+
144
+ $select-option-bg : inherit !default ;
143
145
// scss-docs-end forms
144
146
145
147
$form-theme-map : () !default ;
@@ -158,7 +160,8 @@ $form-theme-map: map-merge(
158
160
" input-plaintext-color" : $input-plaintext-color ,
159
161
" input-group-addon-color" : $input-group-addon-color ,
160
162
" input-group-addon-bg" : $input-group-addon-bg ,
161
- " input-group-addon-border-color" : $input-group-addon-border-color
163
+ " input-group-addon-border-color" : $input-group-addon-border-color ,
164
+ " select-option-bg" : $select-option-bg
162
165
)
163
166
),
164
167
$form-theme-map
You can’t perform that action at this time.
0 commit comments