Skip to content

Commit 85711aa

Browse files
crisbetojosephperrott
authored andcommitted
fix(button): not resetting all outlines on firefox (#11911)
1 parent b041f3f commit 85711aa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/lib/core/style/_button-common.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@
77
outline: none;
88
border: none;
99
-webkit-tap-highlight-color: transparent;
10+
11+
// The `outline: none` from above works on all browsers, however Firefox also
12+
// adds a special `focus-inner` which we have to disable explicitly. See:
13+
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Firefox
14+
&::-moz-focus-inner {
15+
border: 0;
16+
}
1017
}

0 commit comments

Comments
 (0)