Skip to content

Commit 425eb4a

Browse files
committed
Accessible names for share panel buttons
Added aria-label for the buttons on the share panel. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
1 parent 6c42874 commit 425eb4a

9 files changed

+14
-10
lines changed

apps/files_sharing/src/components/SharingEntryInternal.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

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

apps/files_sharing/src/components/SharingEntryLink.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
class="sharing-entry__copy">
4141
<ActionLink :href="shareLink"
4242
target="_blank"
43+
:aria-label="t('files_sharing', 'Copy public link to clipboard')"
4344
:icon="copied && copySuccess ? 'icon-checkmark-color' : 'icon-clippy'"
4445
@click.stop.prevent="copyLink">
4546
{{ clipboardTooltip }}

apps/files_sharing/src/views/SharingInherited.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
<template #avatar>
3131
<div class="avatar-shared icon-more-white" />
3232
</template>
33-
<ActionButton :icon="showInheritedSharesIcon" @click.prevent.stop="toggleInheritedShares">
33+
<ActionButton :icon="showInheritedSharesIcon"
34+
:aria-label="mainTitle"
35+
@click.prevent.stop="toggleInheritedShares">
3436
{{ toggleTooltip }}
3537
</ActionButton>
3638
</SharingEntrySimple>

dist/core-common.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/settings-vue-settings-apps-users-management.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/settings-vue-settings-apps-users-management.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)