fix: accessibility fixes

This commit is contained in:
saicaca committed 2023-10-20 12:14:06 +08:00
1 parent 1ccf80f9a2
commit a15b88bdbd
14 files changed
+31 -44

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ const {categories} = Astro.props;
---
<div>
{Object.entries(categories).map(([key, value]) =>
<ButtonLink url={getCategoryUrl(key)} badge={value.count}>{value.name}</ButtonLink>
<ButtonLink url={getCategoryUrl(key)} badge={value.count} label=`View all posts in the ${value.name} category`>{value.name}</ButtonLink>
<div class="ml-2">
{Object.keys(value.children).length > 0 && <Astro.self categories={value.children}></Astro.self>}
</div>