Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Use aria-label for WordPress affiliation link (#2187)

Olga Bulat68fbe325ecd7
diff --git a/src/components/VHeader/VWordPressLink.vue b/src/components/VHeader/VWordPressLink.vue
index c9318d0fd..96617e3ea 100644
--- a/src/components/VHeader/VWordPressLink.vue
+++ b/src/components/VHeader/VWordPressLink.vue
@@ -1,6 +1,9 @@
<template>
<VLink
href="https://wordpress.org"
+ :aria-label="
+ $t('footer.wordpress-affiliation', { wordpress: 'WordPress' }).toString()
+ "
:class="mode === 'light' ? 'text-dark-charcoal' : 'text-white'"
class="hover:no-underline focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring focus-visible:ring-pink focus-visible:ring-offset-1 focus-visible:ring-offset-tx"
>
@@ -10,8 +13,7 @@
class="label-regular flex flex-row items-center gap-1"
>
<template #wordpress>
- <WordPress class="aria-hidden" />
- <span class="sr-only">WordPress</span>
+ <WordPress />
</template>
</i18n>
</VLink>