Skip to content

Commit e630712

Browse files
committed
remove custom outline from buttons in navbar
1 parent 19e84f8 commit e630712

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

packages/docs/src/components/button.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @jsx jsx */
22
import { jsx } from 'theme-ui'
33

4-
export default props => (
4+
export default (props) => (
55
<button
66
{...props}
77
sx={{
@@ -16,9 +16,6 @@ export default props => (
1616
bg: 'muted',
1717
border: 0,
1818
borderRadius: 2,
19-
':focus': {
20-
outline: '2px solid',
21-
},
2219
}}
2320
/>
2421
)

packages/docs/src/components/menu-button.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Burger = ({ size = '1em' }) => (
1616
</svg>
1717
)
1818

19-
export default props => (
19+
export default (props) => (
2020
<button
2121
title="Toggle Menu"
2222
{...props}
@@ -31,12 +31,7 @@ export default props => (
3131
m: 0,
3232
border: 0,
3333
appearance: 'none',
34-
':focus': {
35-
outline: '2px solid',
36-
},
37-
'@media screen and (min-width: 40em)': {
38-
display: 'none',
39-
},
34+
display: [null, 'none'],
4035
}}>
4136
<Burger />
4237
</button>

0 commit comments

Comments
 (0)