File tree Expand file tree Collapse file tree 5 files changed +19
-1
lines changed Expand file tree Collapse file tree 5 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 12
12
content : " " ;
13
13
display : block ;
14
14
position : absolute ;
15
- top : -18 px ;
15
+ top : -12 px ;
16
16
bottom : -18px ;
17
17
left : -16px ;
18
18
right : -16px ;
Original file line number Diff line number Diff line change 50
50
{#if ! $isMobile }
51
51
{#if primaryRoute ?.children ?.length }
52
52
<NavigationBar
53
+ activeRoutePath ={activeRoute }
53
54
activeRoute ={secondaryRoute }
54
55
style =' secondary'
55
56
menuItems ={primaryRoute .children }
58
59
59
60
{#if secondaryRoute ?.children ?.length }
60
61
<NavigationBar
62
+ activeRoutePath ={activeRoute }
61
63
activeRoute ={tertiaryRoute }
62
64
style =' tertiary'
63
65
menuItems ={secondaryRoute .children }
Original file line number Diff line number Diff line change @@ -83,6 +83,12 @@ a.menuSectionHeading {
83
83
line-height : 22px ;
84
84
font-weight : 700 ;
85
85
cursor : pointer ;
86
+ & :hover {
87
+ color : #2A2A2A ;
88
+ }
89
+ & :global (.active ), &:active {
90
+ color : #0D664E ;
91
+ }
86
92
}
87
93
88
94
.menuSectionDesc {
@@ -100,6 +106,12 @@ a.menuSectionChild {
100
106
font-weight : 500 ;
101
107
color : #767676 ;
102
108
cursor : pointer ;
109
+ & :hover {
110
+ color : #2A2A2A ;
111
+ }
112
+ & :global (.active ), &:active {
113
+ color : #0D664E ;
114
+ }
103
115
}
104
116
105
117
a .ctaButton {
Original file line number Diff line number Diff line change 6
6
export let mainDescription = ' ' ;
7
7
export let menuItems: NavMenuItem [] = [];
8
8
export let isHovering: boolean = false ;
9
+ export let activeRoute: NavMenuItem = undefined ;
9
10
10
11
let elWrap: HTMLElement | undefined ;
11
12
40
41
{#if !! menuItem .label }
41
42
<a
42
43
class ={styles .menuSectionHeading }
44
+ class:active ={activeRoute ?.url === menuItem .url }
43
45
target =" _top"
44
46
href ={menuItem .url }
45
47
>
56
58
<li >
57
59
<a
58
60
class ={styles .menuSectionChild }
61
+ class:active ={activeRoute ?.url === child .url }
59
62
target =" _top"
60
63
href ={child .url }
61
64
>{child .label }</a >
Original file line number Diff line number Diff line change 33
33
>
34
34
{#if ! activeRoute }
35
35
<HoverMenu
36
+ activeRoute ={activeRoutePath [3 ] ?? activeRoutePath [2 ]}
36
37
menuItems ={hoveredMenuItem ?.children }
37
38
mainDescription ={hoveredMenuItem ?.description }
38
39
bind:isHovering ={popupIsVisible }
You can’t perform that action at this time.
0 commit comments