(a11y) label reset button on <FilterBar>

This commit is contained in:
Valentyne Stigloher 2025-05-19 13:38:58 +02:00
parent 9c83dc7ceb
commit b65c668d07
4 changed files with 9 additions and 1 deletions

View File

@ -58,7 +58,12 @@ const categoryButtonKeydown = (event: KeyboardEvent) => {
class="form-control border-primary"
:placeholder="$t('crud.filterLong')"
>
<button v-if="filter" class="btn btn-outline-danger" @click="filter = ''; filterInput?.focus()">
<button
v-if="filter"
class="btn btn-outline-danger"
:title="$t('crud.resetFilter')"
@click="filter = ''; filterInput?.focus()"
>
<Icon v="times" />
</button>
<button

View File

@ -960,6 +960,7 @@ crud:
add: 'Add'
filter: 'Search…'
filterLong: 'Search…'
resetFilter: 'Reset filter'
search: 'Search…'
all: 'All'
author: 'Added by'

View File

@ -1078,6 +1078,7 @@ crud:
add: 'Hinzufügen'
filter: 'Filter'
filterLong: 'Liste filtern...'
resetFilter: 'Filter zurücksetzen'
search: 'Suchen…'
all: 'Alle'
author: 'Hinzugefügt von'

View File

@ -1175,6 +1175,7 @@ crud:
add: 'Add'
filter: 'Search…'
filterLong: 'Search…'
resetFilter: 'Reset filter'
search: 'Search…'
all: 'All'
author: 'Added by'