Skip to content

Commit 6d93a13

Browse files
committed
Reset select:disabled opacity and null-ify color to fix rendering differences in Chrome
1 parent 205e2ca commit 6d93a13

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

scss/_reboot.scss

+7-5
Original file line numberDiff line numberDiff line change
@@ -420,24 +420,26 @@ textarea {
420420
}
421421

422422
// Remove the inheritance of text transform in Firefox
423-
424423
button,
425424
select {
426425
text-transform: none;
427426
}
428-
429427
// Set the cursor for non-`<button>` buttons
430428
//
431429
// Details at https://github.com/twbs/bootstrap/pull/30562
432430
[role="button"] {
433431
cursor: pointer;
434432
}
435433

436-
// Remove the inheritance of word-wrap in Safari.
437-
// See https://github.com/twbs/bootstrap/issues/24990
438-
439434
select {
435+
// Remove the inheritance of word-wrap in Safari.
436+
// See https://github.com/twbs/bootstrap/issues/24990
440437
word-wrap: normal;
438+
439+
// Undo the opacity change from Chrome
440+
&:disabled {
441+
opacity: 1;
442+
}
441443
}
442444

443445
// Remove the dropdown arrow in Chrome from inputs built with datalists.

scss/_variables.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,8 @@ $form-select-indicator-padding: $form-select-padding-x * 3 !default; // Extr
796796
$form-select-font-weight: $input-font-weight !default;
797797
$form-select-line-height: $input-line-height !default;
798798
$form-select-color: $input-color !default;
799-
$form-select-disabled-color: $gray-600 !default;
800799
$form-select-bg: $input-bg !default;
800+
$form-select-disabled-color: null !default;
801801
$form-select-disabled-bg: $gray-200 !default;
802802
$form-select-disabled-border-color: $input-disabled-border-color !default;
803803
$form-select-bg-position: right $form-select-padding-x center !default;

0 commit comments

Comments
 (0)