Skip to content

Commit 22402e6

Browse files
committed
Fix style lint error in navigation CSS module, and implementation error on 'invisible' class being set in inline style in BaseLayout.astro
1 parent 51a1740 commit 22402e6

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

‎src/components/Navigation/menu.module.css‎

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@
8585
overflow: hidden;
8686
}
8787

88+
:global(#header.aria-expanded-true) .mainNavMenu:global(.menu-visible) .mainNavItem {
89+
opacity: 1;
90+
transform: translateY(0);
91+
z-index: var(--z-mobile-menu);
92+
}
93+
8894
:global(#header.aria-expanded-true) .mainNavMenu:global(.menu-visible) .mainNavItem:nth-child(1) {
8995
transition-delay: 0.15s;
9096
}
@@ -125,6 +131,12 @@
125131
transition-delay: 0.6s;
126132
}
127133

134+
:global(#header.aria-expanded-true) .mainNavItem a {
135+
color: var(--color-bg) !important;
136+
opacity: 1;
137+
z-index: var(--z-mobile-menu-item) !important;
138+
}
139+
128140
:global(#header.aria-expanded-true) .mainNavMenu:global(.menu-visible) .mainNavItem a {
129141
color: var(--color-bg);
130142
letter-spacing: 0.38rem;
@@ -164,6 +176,7 @@
164176
z-index: var(--z-mobile-splash);
165177
}
166178

179+
/* stylelint-disable-next-line selector-max-specificity */
167180
:global(#header.aria-expanded-true #mobile-splash::after) {
168181
transform: translate(50%, -50%) scale(1);
169182
}
@@ -192,18 +205,6 @@
192205
opacity: 1;
193206
}
194207

195-
:global(#header.aria-expanded-true) .mainNavMenu:global(.menu-visible) .mainNavItem {
196-
opacity: 1;
197-
transform: translateY(0);
198-
z-index: var(--z-mobile-menu);
199-
}
200-
201-
:global(#header.aria-expanded-true) .mainNavItem a {
202-
color: var(--color-bg) !important;
203-
opacity: 1;
204-
z-index: var(--z-mobile-menu-item) !important;
205-
}
206-
207208
@media (width <= 1023px) {
208209
:global(#header.aria-expanded-true) .mainNavMenu .mainNavItem a {
209210
text-decoration: none !important;

‎src/layouts/BaseLayout.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const {
7676
{/* Visibility set to hidden is a FOUC trick. It is set to 'visible' once */}
7777
{/* the current data-theme value for the <> element is checked and set */}
7878
{/* in components/Head/ThemeInit.astro */}
79-
<body style="invisible">
79+
<body class="invisible">
8080
{/* Cookie Consent Overlay */}
8181
<CookieConsent />
8282
{/* Skip to main content link for accessibility */}

0 commit comments

Comments
 (0)