Skip to content

Commit 5b6db06

Browse files
committed
Fix IconButton focus
1 parent 15cad66 commit 5b6db06

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/components/Layout.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,19 @@ import { navBarRoutes } from "routes/routes";
2929
import { useAuthentication } from "util/useAuthentication";
3030
import { UserMenu } from "components/UserMenu";
3131

32-
const mdTheme = createTheme();
32+
const mdTheme = createTheme({
33+
components: {
34+
MuiIconButton: {
35+
styleOverrides: {
36+
root: {
37+
"&:focus": {
38+
outline: "none",
39+
},
40+
},
41+
},
42+
},
43+
},
44+
});
3345

3446
export const Layout: React.FC = () => {
3547
const [open, setOpen] = React.useState(true);

0 commit comments

Comments
 (0)