Re:Buttons with built-in loading indicators
by nkorth on Wednesday June 05, 2013 @11:40AM
(#5826294)
Or just button:focus{ outline:none; }. That should remove focus styling on all browsers, last I checked.
Not on Firefox. It doesn't use the pseudo-class :focus{outline} for buttons' dotted line, but the pseudo-element ::-moz-focus-inner on which a border is applied.
Note that the dotted line appears inside the button, around the text, and not around the button like :focus{outline} would do.
You can remove it with the non-standard `button::-moz-focus-inner{border:0}`. Then you could define some style for `button:focus{...}` to help keyboard navigation.