Fix screenreader label of search icon

Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
pull/26650/head
Jan C. Borchardt 2021-04-13 20:00:12 +07:00 committed by Joas Schilling
parent 579225052e
commit 73cf8066b4
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 8 additions and 1 deletions

@ -28,7 +28,10 @@
@close="onClose">
<!-- Header icon -->
<template #trigger>
<Magnify class="unified-search__trigger" :size="20" fill-color="var(--color-primary-text)" />
<Magnify class="unified-search__trigger"
:size="20"
:title="ariaLabel"
fill-color="var(--color-primary-text)" />
</template>
<!-- Search form & filters wrapper -->
@ -191,6 +194,10 @@ export default {
}, {})
},
ariaLabel() {
return t('core', 'Search')
},
/**
* Is there any result to display
* @returns {boolean}