Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 71455b2

Browse files
committed
Adding initial hover states
1 parent f3f666e commit 71455b2

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

components/molecules/Navigation/Navigation.module.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,18 @@
1515
& > li {
1616
@apply relative ml-20;
1717

18+
& a {
19+
&:hover,
20+
&:focus {
21+
@apply underline;
22+
}
23+
24+
&.active {
25+
@apply font-bold underline;
26+
}
27+
}
28+
1829
& a.active {
19-
@apply font-bold underline;
2030
}
2131

2232
&:hover,

components/organisms/Footer/Footer.module.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77

88
& > li {
99
@apply mx-8;
10+
11+
& a {
12+
&:hover,
13+
&:focus {
14+
@apply underline;
15+
}
16+
}
1017
}
1118
}
1219
}

components/organisms/Header/Header.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ import Navigation from '@/components/molecules/Navigation'
55
import styles from './Header.module.css'
66
import Hamburger from 'hamburger-react'
77
import {MenuContext} from '@/components/common/MenuProvider'
8+
import cn from 'classnames'
89

910
// TODO: Create Storybook for this component.
10-
// TODO: Split Drawer and Logo into components.
11+
// TODO: Split Logo into component.
12+
// TODO: Create mobile menu.
1113

1214
function Logo() {
1315
return (
@@ -55,10 +57,9 @@ export default function Header() {
5557
<Navigation
5658
menu={menus?.primary_menu}
5759
styles={styles}
58-
className={styles.primaryMenu}
60+
className={cn(styles.primaryMenu, isOpen && styles.open)}
5961
/>
60-
{isOpen ? <Drawer menu={menus?.mobile_menu} /> : null}
61-
<span className="md:hidden">
62+
<span className="hidden">
6263
<Hamburger label="Show menu" toggled={isOpen} toggle={setOpen} />
6364
</span>
6465
</div>

0 commit comments

Comments
 (0)