Skip to content

Commit

Permalink
Fix minor visual bug in FF caused by moz-focusring (v4) (#32821)
Browse files Browse the repository at this point in the history
Avoid bug in Firefox where text appears "noisy" due to text-shadow applying to focused form fields.
  • Loading branch information
kremit authored Feb 17, 2021
1 parent 030af97 commit 9722106
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scss/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9722106

Please sign in to comment.