Make track cards, track links, and project filters keyboard-operable

This commit is contained in:
encie22 committed 2026-10-15 15:30:24 +10:30
1 parent b75f17e604
commit f5d2b417e6
4 files changed
+25 -12

No files matched your search

+4 -2
View File
@@ -21,7 +21,9 @@ const fullFilePath = join(process.cwd(), "public", track.data.src);
const duration = await getAudioDurationInSeconds(fullFilePath);
---
<div
<button
type="button"
aria-label={`Play ${track.data.metadata.title}`}
class:list={[
"text-primary flex items-center transition hover:cursor-pointer hover:text-gray-300",
className
@@ -31,4 +33,4 @@ const duration = await getAudioDurationInSeconds(fullFilePath);
>
<Icon name="fa7-solid:play-circle" class="mr-2 inline-block" />
<span class="inline-block">{track.data.metadata.title}</span>
</div>
</button>