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 1212 content : " " ;
1313 display : block ;
1414 position : absolute ;
15- top : -18 px ;
15+ top : -12 px ;
1616 bottom : -18px ;
1717 left : -16px ;
1818 right : -16px ;
Original file line number Diff line number Diff line change 5050 {#if ! $isMobile }
5151 {#if primaryRoute ?.children ?.length }
5252 <NavigationBar
53+ activeRoutePath ={activeRoute }
5354 activeRoute ={secondaryRoute }
5455 style =' secondary'
5556 menuItems ={primaryRoute .children }
5859
5960 {#if secondaryRoute ?.children ?.length }
6061 <NavigationBar
62+ activeRoutePath ={activeRoute }
6163 activeRoute ={tertiaryRoute }
6264 style =' tertiary'
6365 menuItems ={secondaryRoute .children }
Original file line number Diff line number Diff line change @@ -83,6 +83,12 @@ a.menuSectionHeading {
8383 line-height : 22px ;
8484 font-weight : 700 ;
8585 cursor : pointer ;
86+ & :hover {
87+ color : #2A2A2A ;
88+ }
89+ & :global (.active ), &:active {
90+ color : #0D664E ;
91+ }
8692}
8793
8894.menuSectionDesc {
@@ -100,6 +106,12 @@ a.menuSectionChild {
100106 font-weight : 500 ;
101107 color : #767676 ;
102108 cursor : pointer ;
109+ & :hover {
110+ color : #2A2A2A ;
111+ }
112+ & :global (.active ), &:active {
113+ color : #0D664E ;
114+ }
103115}
104116
105117a .ctaButton {
Original file line number Diff line number Diff line change 66 export let mainDescription = ' ' ;
77 export let menuItems: NavMenuItem [] = [];
88 export let isHovering: boolean = false ;
9+ export let activeRoute: NavMenuItem = undefined ;
910
1011 let elWrap: HTMLElement | undefined ;
1112
4041 {#if !! menuItem .label }
4142 <a
4243 class ={styles .menuSectionHeading }
44+ class:active ={activeRoute ?.url === menuItem .url }
4345 target =" _top"
4446 href ={menuItem .url }
4547 >
5658 <li >
5759 <a
5860 class ={styles .menuSectionChild }
61+ class:active ={activeRoute ?.url === child .url }
5962 target =" _top"
6063 href ={child .url }
6164 >{child .label }</a >
Original file line number Diff line number Diff line change 3333 >
3434 {#if ! activeRoute }
3535 <HoverMenu
36+ activeRoute ={activeRoutePath [3 ] ?? activeRoutePath [2 ]}
3637 menuItems ={hoveredMenuItem ?.children }
3738 mainDescription ={hoveredMenuItem ?.description }
3839 bind:isHovering ={popupIsVisible }
You can’t perform that action at this time.
0 commit comments