Update star focus and hover states
This commit is contained in:
parent
b5ed848c20
commit
9d12b40ae7
|
@ -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>
|
||||
|
@ -39,8 +39,8 @@
|
|||
</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 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>
|
||||
|
|
|
@ -68,6 +68,7 @@ let colors = {
|
|||
|
||||
'teal': '#3F7B8F',
|
||||
|
||||
'orange-light': '#FFB401',
|
||||
'orange': '#FA9903',
|
||||
|
||||
/*
|
||||
|
|
Reference in a new issue