aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWesley Haines <[email protected]>2021-02-16 23:00:37 -0500
committerGitHub <[email protected]>2021-02-17 06:00:37 +0200
commit9722106781fc768d34f801da85e31706d4eb0f64 (patch)
tree4dac167698b83623520d2ee4ca44e1942b56b674
parent030af97fad80e719c1bff1307225413ea959dac0 (diff)
downloadbootstrap-9722106781fc768d34f801da85e31706d4eb0f64.tar.xz
bootstrap-9722106781fc768d34f801da85e31706d4eb0f64.zip
Fix minor visual bug in FF caused by moz-focusring (v4) (#32821)
Avoid bug in Firefox where text appears "noisy" due to text-shadow applying to focused form fields.
-rw-r--r--scss/_forms.scss12
1 files changed, 6 insertions, 6 deletions
diff --git a/scss/_forms.scss b/scss/_forms.scss
index 66a4efe1d..a2494ceaf 100644
--- a/scss/_forms.scss
+++ b/scss/_forms.scss
@@ -30,12 +30,6 @@
border: 0;
}
- // Remove select outline from select box in FF
- &:-moz-focusring {
- color: transparent;
- text-shadow: 0 0 0 $input-color;
- }
-
// Customize the `:focus` state to imitate native WebKit styles.
@include form-control-focus($ignore-warning: true);
@@ -69,6 +63,12 @@ input[type="month"] {
}
select.form-control {
+ // Remove select outline from select box in FF
+ &:-moz-focusring {
+ color: transparent;
+ text-shadow: 0 0 0 $input-color;
+ }
+
&:focus::-ms-value {
// Suppress the nested default white text on blue background highlight given to
// the selected option text when the (still closed) <select> receives focus