Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dff98d8

Browse files
author
Francis Herne
committedNov 27, 2015
Hide Firefox's focus outline on range inputs
Firefox ignores "outline: none;" on ranges, so a dotted rectangle is shown around focused range sliders. This change hides that rectangle to bring the appearance in line with other browsers.
1 parent 89c47c2 commit dff98d8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎scss/_range.scss

+6-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
background-size: 99% $range-track-height;
2121
background-repeat: no-repeat;
2222
-webkit-appearance: none;
23+
24+
&::-moz-focus-outer {
25+
/* hide the focus outline in Firefox */
26+
border: 0;
27+
}
2328

2429
&::-webkit-slider-thumb {
2530
position: relative;
@@ -150,4 +155,4 @@
150155
.range input{
151156
height:auto;
152157
}
153-
}
158+
}

0 commit comments

Comments
 (0)
Please sign in to comment.