Merge pull request #5133 from privatemaker/fix/aria-title-to-buttons

add attributes aria-label= and title= to Filters & View Modes buttons
This commit is contained in:
Julius Härtl
2023-10-16 23:02:35 +02:00
committed by GitHub

View File

@@ -78,6 +78,8 @@
<NcPopover container=".board-action-buttons__filter" <NcPopover container=".board-action-buttons__filter"
:placement="'bottom-end'" :placement="'bottom-end'"
:aria-label="t('deck', 'Active filters')" :aria-label="t('deck', 'Active filters')"
:title="t('deck', 'Active filters')"
:tooltip="t('deck', 'Active filters')"
@show="filterVisible=true" @show="filterVisible=true"
@hide="filterVisible=false"> @hide="filterVisible=false">
<!-- We cannot use NcActions here are the popover trigger does not update on reactive icons --> <!-- We cannot use NcActions here are the popover trigger does not update on reactive icons -->
@@ -188,7 +190,8 @@
</NcPopover> </NcPopover>
</div> </div>
<NcActions> <NcActions :aria-label="t('deck', 'View Modes')"
:title="t('deck', 'Toggle View Modes')">
<NcActionButton @click="toggleShowArchived"> <NcActionButton @click="toggleShowArchived">
<template #icon> <template #icon>
<ArchiveIcon :size="20" decorative /> <ArchiveIcon :size="20" decorative />