diff options
author | fenn-cs <fenn25.fn@gmail.com> | 2023-05-16 01:16:25 +0100 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2023-05-22 10:46:54 +0000 |
commit | 241a513b7e0de36d01dd57053b25c6fec7139df7 (patch) | |
tree | 5e3e4bb28699395de458c605375fdddef328a359 /apps | |
parent | 74b4fd28d84c361a41a1f88c72ff619d94a26867 (diff) | |
download | nextcloud-server-241a513b7e0de36d01dd57053b25c6fec7139df7.tar.gz nextcloud-server-241a513b7e0de36d01dd57053b25c6fec7139df7.zip |
Use aria-expanded correctly on toggle user actions
The aria-expanded attribute was added on the expandable item rather
Than the button that triggers the expand.
Resolves : #37137
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/src/components/UserList/UserRow.vue | 2 | ||||
-rw-r--r-- | apps/settings/src/components/UserList/UserRowSimple.vue | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/settings/src/components/UserList/UserRow.vue b/apps/settings/src/components/UserList/UserRow.vue index ce414210e99..72b0629eaf5 100644 --- a/apps/settings/src/components/UserList/UserRow.vue +++ b/apps/settings/src/components/UserList/UserRow.vue @@ -250,6 +250,8 @@ </NcActions> <div v-click-outside="hideMenu" class="userPopoverMenuWrapper"> <button class="icon-more" + :aria-expanded="openedMenu" + :aria-label="t('settings', 'Toggle user actions menu')" @click.prevent="toggleMenu" /> <div :class="{ 'open': openedMenu }" class="popovermenu"> <NcPopoverMenu :menu="userActions" /> diff --git a/apps/settings/src/components/UserList/UserRowSimple.vue b/apps/settings/src/components/UserList/UserRowSimple.vue index 6da45f804c2..c65a877ad9d 100644 --- a/apps/settings/src/components/UserList/UserRowSimple.vue +++ b/apps/settings/src/components/UserList/UserRowSimple.vue @@ -69,9 +69,10 @@ <div class="userPopoverMenuWrapper"> <button v-click-outside="hideMenu" class="icon-more" + :aria-expanded="openedMenu" :aria-label="t('settings', 'Toggle user actions menu')" @click.prevent="toggleMenu" /> - <div class="popovermenu" :class="{ 'open': openedMenu }" :aria-expanded="openedMenu"> + <div class="popovermenu" :class="{ 'open': openedMenu }"> <NcPopoverMenu :menu="userActions" /> </div> </div> |