Browse Source

Accessible names for share panel buttons

Added aria-label for the buttons on the share panel.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
pull/33316/head
Vincent Petry 4 years ago
parent
commit
4a8cbb82fd
No known key found for this signature in database GPG Key ID: E055D6A4D513575C
  1. 1
      apps/files_sharing/src/components/SharingEntryInternal.vue
  2. 1
      apps/files_sharing/src/components/SharingEntryLink.vue
  3. 4
      apps/files_sharing/src/views/SharingInherited.vue
  4. 4
      dist/files_sharing-files_sharing_tab.js
  5. 2
      dist/files_sharing-files_sharing_tab.js.map

1
apps/files_sharing/src/components/SharingEntryInternal.vue

@ -10,6 +10,7 @@
<ActionLink ref="copyButton"
:href="internalLink"
:aria-label="t('files_sharing', 'Copy internal link to clipboard')"
target="_blank"
:icon="copied && copySuccess ? 'icon-checkmark-color' : 'icon-clippy'"
@click.prevent="copyLink">

1
apps/files_sharing/src/components/SharingEntryLink.vue

@ -40,6 +40,7 @@
class="sharing-entry__copy">
<ActionLink :href="shareLink"
target="_blank"
:aria-label="t('files_sharing', 'Copy public link to clipboard')"
:icon="copied && copySuccess ? 'icon-checkmark-color' : 'icon-clippy'"
@click.stop.prevent="copyLink">
{{ clipboardTooltip }}

4
apps/files_sharing/src/views/SharingInherited.vue

@ -30,7 +30,9 @@
<template #avatar>
<div class="avatar-shared icon-more-white" />
</template>
<ActionButton :icon="showInheritedSharesIcon" @click.prevent.stop="toggleInheritedShares">
<ActionButton :icon="showInheritedSharesIcon"
:aria-label="mainTitle"
@click.prevent.stop="toggleInheritedShares">
{{ toggleTooltip }}
</ActionButton>
</SharingEntrySimple>

4
dist/files_sharing-files_sharing_tab.js
File diff suppressed because it is too large
View File

2
dist/files_sharing-files_sharing_tab.js.map
File diff suppressed because it is too large
View File

Loading…
Cancel
Save