Skip to content

Commit d2cdeda

Browse files
authored
Merge pull request #157 from mustafa-sayyed/fix-menu-feedback
fix top menu feedback on mobile
2 parents 48d2e3b + a147f72 commit d2cdeda

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

src/components/pages/FoundationHeader.astro

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,14 @@ import ExternalIcon from "../../../public/img/icon-external.svg";
291291
margin-inline-start: var(--space-2xs);
292292
}
293293

294+
.menu-item--level-1 > .is-active,
295+
.menu-item--level-2 > .is-active {
296+
text-decoration: underline;
297+
text-decoration-color: currentColor;
298+
text-decoration-thickness: 2px;
299+
text-underline-offset: 8px;
300+
}
301+
294302
@media screen and (max-width: 479px) {
295303
.site-links-wrapper {
296304
width: 100%;
@@ -333,14 +341,6 @@ import ExternalIcon from "../../../public/img/icon-external.svg";
333341
display: block;
334342
}
335343

336-
.menu-item--level-1 > .is-active {
337-
border-inline-start: 2px solid var(--color-header-accent);
338-
}
339-
340-
.menu-item--level-2 > .is-active {
341-
text-decoration: underline;
342-
}
343-
344344
.switch-link:hover {
345345
background-color: var(--color-header-accent);
346346
}
@@ -470,14 +470,6 @@ import ExternalIcon from "../../../public/img/icon-external.svg";
470470
.site-nav__toggle {
471471
display: none;
472472
}
473-
474-
.menu-item--level-1 > .is-active,
475-
.menu-item--level-2 > .is-active {
476-
text-decoration: underline;
477-
text-decoration-color: currentColor;
478-
text-decoration-thickness: 2px;
479-
text-underline-offset: 8px;
480-
}
481473
}
482474
</style>
483475

0 commit comments

Comments
 (0)