Skip to content
Snippets Groups Projects
Commit cb206c7b authored by Thomas Hackl's avatar Thomas Hackl
Browse files

provide link role for screenreaders, re #1719

parent 1e9e610c
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,8 @@
v-model="searchTerm"
:aria-label="$gettext('Geben Sie einen Suchbegriff mit mindestens 3 Zeichen ein.')"
/>
<a v-if="searched" @click.prevent="setShowSearchResults(false)" class="reset-search">
<a v-if="searched" @click.prevent="setShowSearchResults(false)" role="button"
class="reset-search">
<studip-icon shape="decline" size="20"></studip-icon>
</a>
<button
......
......@@ -19,7 +19,7 @@
<?= arrayToHtmlAttributes($needle['attributes']) ?>>
<? endif; ?>
<? if ($reset_link): ?>
<a class="reset-search" href="<?= $reset_link ?>" tabindex="0"
<a class="reset-search" href="<?= $reset_link ?>" tabindex="0" role="button"
title="<?= _('Suche zurücksetzen') ?>">
<?= Icon::create('decline')->asImg(20) ?>
</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment