[TASK] improve a11y in header nav

This commit is contained in:
Marie Birner
2025-08-02 19:45:09 +02:00
parent 5c81cd4995
commit 328bcad296
2 changed files with 15 additions and 4 deletions

View File

@@ -16,9 +16,21 @@ pub fn new(content: Markup) -> Markup {
li { a href="/" { strong { "Digital Shadows" } } }
}
ul {
li { a href="/" { "🏠" } }
li { a href="/game" { "📸" } }
li { div id="theme_switcher" style="width: 20px; height: 20px;" {} }
li {
a href="/"{
span role="img" aria-label="home" {
"🏠"
}
}
}
li {
a href="/game" {
span role="img" aria-label="camera" {
"📸"
}
}
}
li { span id="theme_switcher" style="width: 20px; height: 20px;" {} }
}
}
}