Rename color: to colors:

This commit is contained in:
Tom Pansino 2020-08-10 17:25:43 -07:00
parent 687a9e4086
commit 118d3e5ac0

View File

@ -4,7 +4,7 @@
<a :href="item.url" :target="item.target" rel="noreferrer">
<div
class="card-content"
:style="(item.color && item.color.background) ? {backgroundColor: item.color.background} : null"
:style="(item.colors && item.colors.background) ? {backgroundColor: item.colors.background} : null"
>
<div class="media">
<div v-if="item.logo" class="media-left">
@ -20,11 +20,11 @@
<div class="media-content">
<p
class="title is-4"
:style="(item.color && item.color.text) ? {color: item.color.text} : null"
:style="(item.colors && item.colors.text) ? {color: item.colors.text} : null"
>{{ item.name }}</p>
<p
class="subtitle is-6"
:style="(item.color && item.color.text) ? {color: item.color.text} : null"
:style="(item.colors && item.colors.text) ? {color: item.colors.text} : null"
>{{ item.subtitle }}</p>
</div>
</div>