Make track cards, track links, and project filters keyboard-operable
This commit is contained in:
4 files changed
+25
-12
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user