Add focus state to display switcher
This commit is contained in:
parent
8930e010ca
commit
fbb7e936fa
|
@ -1,12 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="bg-grey-lightest rounded overflow-hidden">
|
<div class="bg-grey-lightest rounded overflow-hidden">
|
||||||
<button type="button" class="p-2 focus:outline-none" :class="[mode == 'grid' ? 'bg-blue-light text-white' : 'text-grey-darkest']" @click="$emit('display-changed', 'grid')">
|
<button type="button" class="p-2 focus:outline-none focus:bg-blue-dark focus:text-white" :class="[mode == 'grid' ? 'bg-blue-light text-white' : 'text-grey-darkest']" @click="$emit('display-changed', 'grid')">
|
||||||
<svg class="h-5 w-5 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__grid"></use></svg>
|
<svg class="h-5 w-5 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__grid"></use></svg>
|
||||||
<span class="visuallyhidden">Grid</span>
|
<span class="visuallyhidden">Grid</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button type="button" class="p-2 focus:outline-none" :class="[mode == 'list' ? 'bg-blue-light text-white' : 'text-grey-darkest']" @click="$emit('display-changed', 'list')">
|
<button type="button" class="p-2 focus:outline-none focus:bg-blue-dark focus:text-white" :class="[mode == 'list' ? 'bg-blue-light text-white' : 'text-grey-darkest']" @click="$emit('display-changed', 'list')">
|
||||||
<svg class="h-5 w-5 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__list"></use></svg>
|
<svg class="h-5 w-5 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__list"></use></svg>
|
||||||
<span class="visuallyhidden">List</span>
|
<span class="visuallyhidden">List</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
Reference in a new issue