Skip to content

Commit

Permalink
The header logo link spans the width of it's parent so that the hover…
Browse files Browse the repository at this point in the history
… pseudo class is activated when the user hovers over the whole header logo component
  • Loading branch information
nicholeuf committed Feb 18, 2024
1 parent ab3781b commit ec91311
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/__snapshots__/page.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ exports[`The Home Page has expected snapshot 1`] = `
-webkit-text-decoration: none;
text-decoration: none;
color: #373833;
width: 100%;
text-align: center;
}
.emotion-2:hover {
Expand Down
2 changes: 2 additions & 0 deletions src/components/Header/HeaderLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const HeaderLogo: React.FC<HeaderLogoProps> = ({
href="/"
sx={{
color,
width: '100%',
textAlign: 'center',
'&:hover': {
color: activeColor,
textDecoration: 'none',
Expand Down

0 comments on commit ec91311

Please sign in to comment.