Fix screenreader label of search icon
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
This commit is contained in:
parent
e29963f0fc
commit
427270396c
|
@ -28,7 +28,10 @@
|
||||||
@close="onClose">
|
@close="onClose">
|
||||||
<!-- Header icon -->
|
<!-- Header icon -->
|
||||||
<template #trigger>
|
<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>
|
</template>
|
||||||
|
|
||||||
<!-- Search form & filters wrapper -->
|
<!-- Search form & filters wrapper -->
|
||||||
|
@ -191,6 +194,10 @@ export default {
|
||||||
}, {})
|
}, {})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
ariaLabel() {
|
||||||
|
return t('core', 'Search')
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is there any result to display
|
* Is there any result to display
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
|
|
Loading…
Reference in New Issue