Skip to content

Commit 08761c6

Browse files
committed
Fix Accessibility: Remove focus-visible styles from Close button in NavDrawer component
1 parent e5cf4b2 commit 08761c6

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/components/nav-drawer.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,7 @@ function NavDrawer() {
123123
}}
124124
>
125125
<SiteTitle />
126-
<Button
127-
aria-label="Close"
128-
onClick={() => setOpen(false)}
129-
sx={{
130-
'&:focus-visible': {
131-
outline: '2px solid',
132-
outlineColor: 'accent.fg',
133-
outlineOffset: '2px',
134-
},
135-
}}
136-
>
126+
<Button aria-label="Close" onClick={() => setOpen(false)}>
137127
<XIcon />
138128
</Button>
139129
</DarkTheme>

0 commit comments

Comments
 (0)