Merge pull request #328 from chs20/main

Make menu icon visible in dark mode
This commit is contained in:
Keith Stevens
2023-01-04 12:07:42 +09:00
committed by GitHub
+3 -1
View File
@@ -10,9 +10,11 @@ import { ColorModeIconToggle } from "../UI/ColorModeIconToggle";
import { UserMenu } from "./UserMenu";
function MenuIcon(props) {
const { colorMode } = useColorMode();
const stroke = colorMode === "light" ? "black" : "white";
return (
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true" {...props}>
<path d="M5 6h14M5 18h14M5 12h14" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" />
<path d="M5 6h14M5 18h14M5 12h14" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" stroke={stroke} />
</svg>
);
}