aboutsummaryrefslogtreecommitdiff
path: root/scss/_reboot.scss
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2021-03-02 06:09:14 -0800
committerMark Otto <[email protected]>2021-03-02 06:40:32 -0800
commit6d93a1371a7edb823f7d625c6f4489f37c06aac1 (patch)
tree629511c83375553f197bbaf448a6b0c1d44116d9 /scss/_reboot.scss
parent205e2cae701209268f5b715b20cb544c1efd54e2 (diff)
downloadbootstrap-6d93a1371a7edb823f7d625c6f4489f37c06aac1.tar.xz
bootstrap-6d93a1371a7edb823f7d625c6f4489f37c06aac1.zip
Reset select:disabled opacity and null-ify color to fix rendering differences in Chrome
Diffstat (limited to 'scss/_reboot.scss')
-rw-r--r--scss/_reboot.scss12
1 files changed, 7 insertions, 5 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss
index 7b153d1a8..22b9aaa60 100644
--- a/scss/_reboot.scss
+++ b/scss/_reboot.scss
@@ -420,12 +420,10 @@ textarea {
}
// Remove the inheritance of text transform in Firefox
-
button,
select {
text-transform: none;
}
-
// Set the cursor for non-`<button>` buttons
//
// Details at https://github.com/twbs/bootstrap/pull/30562
@@ -433,11 +431,15 @@ select {
cursor: pointer;
}
-// Remove the inheritance of word-wrap in Safari.
-// See https://github.com/twbs/bootstrap/issues/24990
-
select {
+ // Remove the inheritance of word-wrap in Safari.
+ // See https://github.com/twbs/bootstrap/issues/24990
word-wrap: normal;
+
+ // Undo the opacity change from Chrome
+ &:disabled {
+ opacity: 1;
+ }
}
// Remove the dropdown arrow in Chrome from inputs built with datalists.