Skip to content

Commit f029ccb

Browse files
committed
fix(a11y): match copy button aria-label to its visible text
1 parent 2e0000a commit f029ccb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/CopyToClipboardButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const props = defineProps<{
1616
1717
const buttonCopyText = computed(() => props.copyText || $t('common.copy'))
1818
const buttonCopiedText = computed(() => props.copiedText || $t('common.copied'))
19-
const buttonAriaLabelCopy = computed(() => props.ariaLabelCopy || $t('common.copy'))
20-
const buttonAriaLabelCopied = computed(() => props.ariaLabelCopied || $t('common.copied'))
19+
const buttonAriaLabelCopy = computed(() => props.ariaLabelCopy || props.copyText || $t('common.copy'))
20+
const buttonAriaLabelCopied = computed(() => props.ariaLabelCopied || props.copiedText || $t('common.copied'))
2121
2222
const emit = defineEmits<{
2323
click: []

0 commit comments

Comments
 (0)