Lighten Home navigation icon strokes

This commit is contained in:
2026-12-06 02:17:30 +08:00
parent 131b74602c
commit 42e0c89c44
3 changed files with 21 additions and 17 deletions
-5
View File
@@ -36,11 +36,6 @@ export function HomeInteractions() {
else item.removeAttribute("aria-current");
item.classList.toggle("font-title", active);
item.classList.toggle("font-body", !active);
const icon = item.querySelector<HTMLElement>(".nav-icon");
if (icon) {
icon.textContent = item.dataset.nav === "home" ? "home" : active ? "person" : "person_outline";
icon.style.fontVariationSettings = active ? "'FILL' 1" : "'FILL' 0";
}
});
window.scrollTo({ top: 0, behavior: "smooth" });
}