Skip to content

Commit 1374d9f

Browse files
committed
fix for comment on tabIndex of BaseCard
1 parent 848a1ad commit 1374d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/BaseCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defineProps<{
1010

1111
<template>
1212
<article
13-
tabindex="0"
13+
:tabindex="index != null ? 0 : undefined"
1414
:data-result-index="index"
1515
class="group bg-bg-subtle border border-border rounded-lg p-4 sm:p-6 transition-[border-color,background-color] duration-200 hover:(border-border-hover bg-bg-muted) cursor-pointer relative focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-bg focus-visible:ring-offset-2 focus-visible:ring-accent focus-visible:bg-bg-muted focus-visible:border-accent/50"
1616
:class="{

0 commit comments

Comments
 (0)