Skip to content

Commit da3ec17

Browse files
mustafa-sayyedsidvishnoi
authored andcommitted
fix: unify active menu item styles for better consistency
1 parent 753aa58 commit da3ec17

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/components/pages/FoundationHeader.astro

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,12 @@ 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+
}
299+
294300
@media screen and (max-width: 479px) {
295301
.site-links-wrapper {
296302
width: 100%;
@@ -333,14 +339,8 @@ import ExternalIcon from "../../../public/img/icon-external.svg";
333339
display: block;
334340
}
335341

336-
.menu-item--level-1 > .is-active {
337-
text-decoration: underline;
338-
text-decoration-thickness: 1.5px;
339-
text-underline-offset: 5px;
340-
}
341-
342+
.menu-item--level-1 > .is-active,
342343
.menu-item--level-2 > .is-active {
343-
text-decoration: underline;
344344
text-decoration-thickness: 1.5px;
345345
text-underline-offset: 5px;
346346
}
@@ -477,8 +477,6 @@ import ExternalIcon from "../../../public/img/icon-external.svg";
477477

478478
.menu-item--level-1 > .is-active,
479479
.menu-item--level-2 > .is-active {
480-
text-decoration: underline;
481-
text-decoration-color: currentColor;
482480
text-decoration-thickness: 2px;
483481
text-underline-offset: 8px;
484482
}

0 commit comments

Comments
 (0)