summaryrefslogtreecommitdiff
path: root/.zs/components/nav
diff options
context:
space:
mode:
authordelta <darkussdelta@gmail.com>2026-07-25 15:54:47 +0200
committerdelta <darkussdelta@gmail.com>2026-07-25 15:54:47 +0200
commitefb659204e067345f53ee0d4a2786b3280bf1398 (patch)
treea2dea26ad81252f45ab6272b91c3171ce3f6d381 /.zs/components/nav
parent6979ec35432ae68c01644b37f06fb0164d9ea312 (diff)
add aria labels to nav icons
Diffstat (limited to '.zs/components/nav')
-rwxr-xr-x.zs/components/nav6
1 files changed, 3 insertions, 3 deletions
diff --git a/.zs/components/nav b/.zs/components/nav
index c787517..757c594 100755
--- a/.zs/components/nav
+++ b/.zs/components/nav
@@ -68,7 +68,6 @@ local current_file = get_file_stem(current_path)
local acc = {}
for _, link in ipairs(links) do
- local title = link.title
local class = "tab"
if
current_file == get_file_stem(link.url) or
@@ -84,13 +83,14 @@ for _, link in ipairs(links) do
{
tag = "a",
href = link.url,
+ ["aria-label"] = link.title,
{
tag = "div",
- style = [[mask-image: url("/assets/svg/]] .. link.icon .. [[.svg")]]
+ style = [[mask-image: url("/assets/svg/]] .. link.icon .. [[.svg")]],
},
{
tag = "span",
- title
+ link.title
}
}
})