Skip to content

Commit 83fb11a

Browse files
authored
Merge pull request #1409 from Shopify/fix-moz-focus-inner
Prevent Firefox from showing an inner dotted border on focused buttons
2 parents 0fc1462 + abf3d0b commit 83fb11a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

UNRELEASED.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f
1717
### Enhancements
1818

1919
- Made the `action` prop optional on `EmptyState` ([#1583](https://github.com/Shopify/polaris-react/pull/1583))
20+
- Prevented Firefox from showing an extra dotted border on focused buttons ([#1409](https://github.com/Shopify/polaris-react/pull/1409))
2021

2122
### Bug fixes
2223

src/styles/global/elements.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,10 @@ p {
5050
font-size: 1em;
5151
font-weight: 400;
5252
}
53+
54+
button::-moz-focus-inner,
55+
[type='button']::-moz-focus-inner,
56+
[type='reset']::-moz-focus-inner,
57+
[type='submit']::-moz-focus-inner {
58+
border-style: none;
59+
}

0 commit comments

Comments
 (0)