News for hackers. Stuff that matters.
Re:Buttons with built-in loading indicators by mrtbld on Wednesday June 05, 2013 @06:01AM (#5824577)
On Firefox, a dotted line appears around the button's text when it has focus (after click for instance). IMO, it ruins the nice clear style of the buttons.

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.

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.
Re:Buttons with built-in loading indicators by mrtbld on Thursday June 06, 2013 @06:50AM (#5831595)
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.