Accessibility improvements
This commit is contained in:
parent
af9a848b84
commit
8d7cbdac35
|
@ -18,6 +18,7 @@
|
|||
|
||||
<div class="flex-none w-1/6 text-right">
|
||||
<button type="button" @click="starred = !starred" class="focus:outline-none" :class="[starred ? 'text-orange hover:text-orange-light focus:text-orange-light' : 'text-grey focus:text-orange hover:text-orange']">
|
||||
<span class="visuallyhidden">{{ !starred ? 'Star' : 'Unstar' }} {{ application.name }}</span>
|
||||
<svg class="h-6 w-6 fill-current" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#state__${starred ? 'starred' : 'unstarred'}`"></use></svg>
|
||||
</button>
|
||||
</div>
|
||||
|
@ -41,6 +42,7 @@
|
|||
|
||||
<div class="px-2">
|
||||
<button type="button" @click="starred = !starred" class="focus:outline-none" :class="[starred ? 'text-orange hover:text-orange-light focus:text-orange-light' : 'text-grey focus:text-orange hover:text-orange']">
|
||||
<span class="visuallyhidden">{{ !starred ? 'Star' : 'Unstar' }} {{ application.name }}</span>
|
||||
<svg class="h-6 w-6 fill-current" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#state__${starred ? 'starred' : 'unstarred'}`"></use></svg>
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -30,7 +30,8 @@
|
|||
<div class="lg:flex lg:flex-row-reverse justify-between items-baseline">
|
||||
<div class="w-full">
|
||||
<form action="#">
|
||||
<input type="text" placeholder="Filter applications" class="w-full py-2 px-3 border border-grey-darker rounded">
|
||||
<label for="applications" class="visuallyhidden">Filter applications</label>
|
||||
<input id="applications" type="text" placeholder="Filter applications" class="w-full py-2 px-3 border border-grey-darker rounded">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue