Skip to content

Commit

Permalink
Fix Navbar hover color
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinkipruto committed Dec 13, 2024
1 parent e248f09 commit bec6147
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions apps/climatemappedafrica/src/components/Menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ function Menu({ children, explorePagePath, links, socialLinks, LinkProps }) {
})}
>
<Link
color={index !== 0 ? "secondary" : "primary"}
display="inline-flex"
href={item.href}
size="large"
Expand All @@ -51,15 +50,17 @@ function Menu({ children, explorePagePath, links, socialLinks, LinkProps }) {
sx={({ palette, typography }) => ({
borderRadius: 20,
border: item.href === exploreHref ? "3px solid" : 0,
color: {
xs: palette.text.secondary,
lg: palette.primary.main,
},
padding: `${typography.pxToRem(14)} ${typography.pxToRem(28)} `,
color: index !== 0 ? palette.grey.dark : palette.primary.main,
"&:hover": {
padding: `${typography.pxToRem(16)} ${typography.pxToRem(30)} `,
border: "1px solid",
color: index !== 0 ? "#707070" : palette.primary.main,
},
...(index === 0 && {
"&:hover": {
padding: `${typography.pxToRem(16)} ${typography.pxToRem(30)}`,
border: "1px solid",
},
}),
...LinkProps?.sx,
})}
>
Expand Down

0 comments on commit bec6147

Please sign in to comment.