Commit ab107f86 authored by Florrie's avatar Florrie

Hide Firefox focus ring

See this StackOverflow answer: https://stackoverflow.com/a/18853002/4633828

This isn't a perfect fix - we have to set `color` explicitly, rather
than use `inherit`, because we want the text color to be the same when
the select element is focused. That means both `color` and
`text-shadow`'s color have to be explicitly set to the same thing
(otherwise they might not match). Yay, hacks!
parent 870b916d
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
border: 1px solid $active-gray; border: 1px solid $active-gray;
border-radius: 5px; border-radius: 5px;
background: $ui-light-gray url("../../../static/svgs/forms/carot.svg") no-repeat right center; background: $ui-light-gray url("../../../static/svgs/forms/carot.svg") no-repeat right center;
color: $type-gray;
padding-right: 4rem; padding-right: 4rem;
width: 100%; width: 100%;
height: 3rem; height: 3rem;
...@@ -34,6 +35,11 @@ ...@@ -34,6 +35,11 @@
border: 1px solid $ui-blue; border: 1px solid $ui-blue;
} }
&:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 $type-gray;
}
&:focus, &:focus,
&:hover { &:hover {
background: $ui-light-gray url("../../../static/svgs/forms/carot-hover.svg") no-repeat right center; background: $ui-light-gray url("../../../static/svgs/forms/carot-hover.svg") no-repeat right center;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment