just in case for screen readers

This commit is contained in:
pyr33x 2024-09-07 21:42:27 +03:30
parent 7ac4fca29d
commit 3fefbf4bbb

View File

@ -102,7 +102,11 @@
<div class="flex items-center space-x-1 justify-center">
{#if Array.isArray(svgInfo.category)}
{#each svgInfo.category.slice(0, maxVisibleCategories) as c, index}
<a href={`/directory/${c.toLowerCase()}`} class={badgeStyles}>{c}</a>
<a
href={`/directory/${c.toLowerCase()}`}
class={badgeStyles}
title={`This icon is part of the ${svgInfo.category} category`}>{c}</a
>
{/each}
{#if svgInfo.category.length > maxVisibleCategories}