Skip to content

Commit 6c9640c

Browse files
MartijnCuppensXhmikosR
authored andcommitted
Backport twbs#29445
Remove outline from select box in Firefox
1 parent 1260b4f commit 6c9640c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

scss/_custom-forms.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,12 @@
268268
&::-ms-expand {
269269
display: none;
270270
}
271+
272+
// Remove outline from select box in FF
273+
&:-moz-focusring {
274+
color: transparent;
275+
text-shadow: 0 0 0 $custom-select-color;
276+
}
271277
}
272278

273279
.custom-select-sm {

scss/_forms.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030
border: 0;
3131
}
3232

33+
// Remove select outline from select box in FF
34+
&:-moz-focusring {
35+
color: transparent;
36+
text-shadow: 0 0 0 $input-color;
37+
}
38+
3339
// Customize the `:focus` state to imitate native WebKit styles.
3440
@include form-control-focus($ignore-warning: true);
3541

0 commit comments

Comments
 (0)