Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[website] Improve navbar's items hover state #41535

Merged
merged 9 commits into from
Mar 18, 2024
6 changes: 3 additions & 3 deletions docs/src/components/header/HeaderNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const Navigation = styled('nav')(({ theme }) => [
},
'& li': {
...theme.typography.body2,
color: (theme.vars || theme).palette.text.primary,
fontWeight: theme.typography.fontWeightBold,
color: (theme.vars || theme).palette.text.secondary,
fontWeight: theme.typography.fontWeightSemiBold,
'& > a, & > button': {
display: 'inline-block',
color: 'inherit',
Expand All @@ -38,7 +38,7 @@ const Navigation = styled('nav')(({ theme }) => [
borderRadius: (theme.vars || theme).shape.borderRadius,
border: '1px solid transparent',
'&:hover': {
color: (theme.vars || theme).palette.grey[900],
color: (theme.vars || theme).palette.text.primary,
backgroundColor: (theme.vars || theme).palette.grey[50],
borderColor: (theme.vars || theme).palette.grey[100],
'@media (hover: none)': {
Expand Down
Loading