Skip to content

Commit cf52bf8

Browse files
committed
add aria hidden
1 parent 6d042e6 commit cf52bf8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/src/components/AuditLog.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,11 @@
8585
v-for="type in selectedEventTypes"
8686
:key="type"
8787
class="inline-flex items-center rounded-md bg-green-50 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20"
88+
:aria-label="t('auditLog.filter.removeEventType', { type: eventTypeOptions[type] })"
8889
@click.stop="removeEventType(type)"
8990
>
9091
<span class="mr-1">{{ eventTypeOptions[type] }}</span>
91-
<span class="text-green-800 font-bold">&times;</span>
92+
<span class="text-green-800 font-bold" aria-hidden="true">&times;</span>
9293
</button>
9394
</template>
9495
<template v-else>
@@ -104,7 +105,7 @@
104105
<ListboxOption
105106
v-for="(label, key) in eventTypeOptions"
106107
:key="key"
107-
v-slot="{ active, selected }"
108+
v-slot="{ selected }"
108109
class="relative cursor-default select-none py-2 pl-3 pr-9 ui-not-active:text-gray-900 ui-active:text-white ui-active:bg-primary"
109110
:value="key"
110111
>

0 commit comments

Comments
 (0)