Skip to content

Commit

Permalink
fix(button): not resetting all outlines on firefox (#11911)
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbeto authored and josephperrott committed Jun 26, 2018
1 parent b041f3f commit 85711aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/core/style/_button-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,11 @@
outline: none;
border: none;
-webkit-tap-highlight-color: transparent;

// The `outline: none` from above works on all browsers, however Firefox also
// adds a special `focus-inner` which we have to disable explicitly. See:
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Firefox
&::-moz-focus-inner {
border: 0;
}
}

0 comments on commit 85711aa

Please sign in to comment.