]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix minor visual bug in FF caused by moz-focusring (v4) (#32821)
authorWesley Haines <wes@weshaines.com>
Wed, 17 Feb 2021 04:00:37 +0000 (23:00 -0500)
committerGitHub <noreply@github.com>
Wed, 17 Feb 2021 04:00:37 +0000 (06:00 +0200)
Avoid bug in Firefox where text appears "noisy" due to text-shadow applying to focused form fields.

scss/_forms.scss

index 66a4efe1d47524a85c1cfbf139f683f72859c8b0..a2494ceafd7d72ed019c69dc57614e2d0cea452a 100644 (file)
     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