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:47:35 +0000 |
commit | eb9d0ca4bfec55b802ef7b4d1778384861ad05ca (patch) | |
tree | 1cae50be92ad8631938c7e0e0b4cdebf55afb251 /apps | |
parent | 7d1c6d46ee7ac3c4d3971fd9fc646ea61df60025 (diff) | |
download | nextcloud-server-eb9d0ca4bfec55b802ef7b4d1778384861ad05ca.tar.gz nextcloud-server-eb9d0ca4bfec55b802ef7b4d1778384861ad05ca.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 797156f1882..9063d6a676f 100644 --- a/apps/settings/src/components/UserList/UserRow.vue +++ b/apps/settings/src/components/UserList/UserRow.vue @@ -220,6 +220,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 958725d7e63..635e6a2442a 100644 --- a/apps/settings/src/components/UserList/UserRowSimple.vue +++ b/apps/settings/src/components/UserList/UserRowSimple.vue @@ -65,9 +65,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> |