Update star focus and hover states

This commit is contained in:
Oliver Davies 2018-12-25 21:29:25 +00:00
parent b5ed848c20
commit 9d12b40ae7
2 changed files with 18 additions and 17 deletions

View file

@ -13,8 +13,8 @@
</div>
<div class="ml-2">
<button type="button" @click="starred = !starred" class="focus:outline-none">
<svg class="h-6 w-6 text-orange fill-current" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#state__${starred ? 'starred' : 'unstarred'}`"></use></svg>
<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']">
<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>
</div>
@ -25,25 +25,25 @@
<div v-if="display == 'list'" class="bg-white p-3 border-grey border-b">
<div class="-mx-2">
<div class="flex flex-row-reverse items-center justify-between">
<div class="flex flex-1 justify-between items-center -mx-2">
<div class="flex-1 px-2">
<router-link :to="{name: 'environments', params: {id: id}}" class="text-blue-dark no-underline hover:underline focus:underline"><h2 class="text-base font-normal mb-1">{{ application.name }}</h2></router-link>
</div>
<application-tags :type="application.type" :level="application.level" class="w-1/4 px-2"></application-tags>
<div class="w-2/5 px-2">
<a href="#0" class="text-blue-dark no-underline hover:underline focus:underline">{{ application.environments['prod'].url }}</a>
</div>
<div class="flex flex-row-reverse items-center justify-between">
<div class="flex flex-1 justify-between items-center -mx-2">
<div class="flex-1 px-2">
<router-link :to="{name: 'environments', params: {id: id}}" class="text-blue-dark no-underline hover:underline focus:underline"><h2 class="text-base font-normal mb-1">{{ application.name }}</h2></router-link>
</div>
<div class="px-2">
<button type="button" @click="starred = !starred" class="focus:outline-none">
<svg class="h-6 w-6 text-orange fill-current" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#state__${starred ? 'starred' : 'unstarred'}`"></use></svg>
</button>
<application-tags :type="application.type" :level="application.level" class="w-1/4 px-2"></application-tags>
<div class="w-2/5 px-2">
<a href="#0" class="text-blue-dark no-underline hover:underline focus:underline">{{ application.environments['prod'].url }}</a>
</div>
</div>
<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']">
<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>
</div>
</div>
</div>
</div>

View file

@ -68,6 +68,7 @@ let colors = {
'teal': '#3F7B8F',
'orange-light': '#FFB401',
'orange': '#FA9903',
/*