summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-11-16 16:05:00 -0800
committerfenn-cs <fenn25.fn@gmail.com>2023-11-30 16:58:21 +0100
commitbedcbb8ecc175adb0c8664a82d2e28297a7d7510 (patch)
tree6dd0e66e219f3fe5302f54e1e1d767f8ecb0a163 /apps
parent07437d0c1d18a690aa509fda5a500c5b06f9b2df (diff)
downloadnextcloud-server-bedcbb8ecc175adb0c8664a82d2e28297a7d7510.tar.gz
nextcloud-server-bedcbb8ecc175adb0c8664a82d2e28297a7d7510.zip
fix(a11y): Focus on sharing quick permission radio
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/src/views/SharingDetailsTab.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue
index dd5ab493193..4a347404461 100644
--- a/apps/files_sharing/src/views/SharingDetailsTab.vue
+++ b/apps/files_sharing/src/views/SharingDetailsTab.vue
@@ -16,7 +16,8 @@
</span>
</div>
<div class="sharingTabDetailsView__wrapper">
- <div class="sharingTabDetailsView__quick-permissions">
+ <div ref="quickPermissions"
+ class="sharingTabDetailsView__quick-permissions">
<div>
<NcCheckboxRadioSwitch :button-variant="true"
:checked.sync="sharingPermission"
@@ -647,6 +648,10 @@ export default {
console.debug('config', this.config)
},
+ mounted() {
+ this.$refs.quickPermissions?.querySelector('input:checked')?.focus()
+ },
+
methods: {
updateAtomicPermissions({
isReadChecked = this.hasRead,