Skip to content

Commit

Permalink
Hide Firefox's focus outline on range inputs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Francis Herne committed Nov 27, 2015
1 parent 89c47c2 commit dff98d8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scss/_range.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
background-size: 99% $range-track-height;
background-repeat: no-repeat;
-webkit-appearance: none;

&::-moz-focus-outer {
/* hide the focus outline in Firefox */
border: 0;
}

&::-webkit-slider-thumb {
position: relative;
Expand Down Expand Up @@ -150,4 +155,4 @@
.range input{
height:auto;
}
}
}

0 comments on commit dff98d8

Please sign in to comment.