Add underline on focus

This commit is contained in:
Oliver Davies 2019-07-11 00:15:01 +01:00
parent 891346a359
commit e0d8013997

View file

@ -49,7 +49,7 @@
<a
v-for="(item, index) in items"
:key="index"
class="block py-3 px-4 mx-4 mt-1 -mb-px rounded text-sm text-white no-underline hover:underline focus:outline-none md:py-1 md:px-2 md:mx-2 md:mt-0 md:mr-0"
class="block py-3 px-4 mx-4 mt-1 -mb-px rounded text-sm text-white no-underline hover:underline focus:outline-none focus:underline md:py-1 md:px-2 md:mx-2 md:mt-0 md:mr-0"
:class="{ 'cursor-default bg-blue-500 hover:border-blue-600 hover:no-underline md:bg-blue-700': isActive(item) }"
:href="item.href"
:aria-current="isActive(item) ? 'page' : false"