Skip to content

Commit

Permalink
[website] Fix visual bug appbar (#36875)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 13, 2023
1 parent 75c1dfb commit 511b385
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions docs/src/components/header/HeaderNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,21 @@ const Navigation = styled('nav')(({ theme }) => [
display: 'inline-block',
color: 'inherit',
textDecoration: 'none',
padding: theme.spacing(1),
padding: theme.spacing('8px', 1),
borderRadius: (theme.vars || theme).shape.borderRadius,
'&:hover, &:focus': {
backgroundColor: (theme.vars || theme).palette.grey[50],
'&:hover': {
color: (theme.vars || theme).palette.grey[700],
backgroundColor: (theme.vars || theme).palette.grey[50],
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
backgroundColor: 'initial',
},
},
'&:focus-visible': {
color: (theme.vars || theme).palette.grey[700],
outline: 0,
backgroundColor: (theme.vars || theme).palette.grey[100],
},
},
'& > div': {
cursor: 'default',
Expand All @@ -47,10 +52,14 @@ const Navigation = styled('nav')(({ theme }) => [
theme.applyDarkStyles({
'& li': {
'& > a, & > div': {
'&:hover, &:focus': {
'&:hover': {
backgroundColor: (theme.vars || theme).palette.primaryDark[700],
color: (theme.vars || theme).palette.primaryDark[200],
},
'&:focus-visible': {
backgroundColor: (theme.vars || theme).palette.primaryDark[600],
color: (theme.vars || theme).palette.primaryDark[100],
},
},
},
}),
Expand Down

0 comments on commit 511b385

Please sign in to comment.