Skip to content

Commit

Permalink
Makes mobile nav have same background whether light/dark mode enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
narbs91 committed Nov 29, 2021
1 parent 2b22dab commit b11d9fd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pages/components/nav/mobile-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export default function MobileNav({
isGlossaryPage,
isSearchPage,
}: any) {
const bg = useColorModeValue("white", "gray.800");
const mobileNav = useDisclosure();
const bg = useColorModeValue("gray.800", "gray.800");
const { onClose, onOpen, isOpen } = useDisclosure();

return (
Expand All @@ -25,7 +24,7 @@ export default function MobileNav({
display={{ base: "flex", md: "none" }}
aria-label="Open menu"
fontSize="20px"
color={useColorModeValue("grey.800", "inherit")}
color="white"
variant="ghost"
icon={<AiOutlineMenu />}
onClick={onOpen}
Expand All @@ -47,7 +46,7 @@ export default function MobileNav({
shadow="sm"
zIndex="99"
>
<CloseButton aria-label="Close menu" onClick={onClose} color="white"/>
<CloseButton aria-label="Close menu" onClick={onClose} color="white" />

<NavItems
isHomePage={isHomePage}
Expand Down

0 comments on commit b11d9fd

Please sign in to comment.