[profile][bug] force default font colour in links

This commit is contained in:
Andrea Vos 2022-10-16 18:43:53 +02:00
parent 89a3bf0553
commit b9a35c41d3
2 changed files with 2 additions and 1 deletions

View File

@ -43,4 +43,5 @@ $colours: (
'green': ('light': $green, 'dark': $green-300),
'blue': ('light': $blue-700, 'dark': $blue-200),
'grey': ('light': $gray-600, 'dark': $gray-600),
'default':('light': $body-color, 'dark': $light),
);

View File

@ -4,7 +4,7 @@
<Icon :v="op.icon"/>
</Tooltip>
<Twemoji>
<nuxt-link v-if="link" :to="link" :class="`colour-${op.colour}`"><Spelling :escape="escape" :text="word"/></nuxt-link>
<nuxt-link v-if="link" :to="link" :class="`colour-${op.colour || 'default'}`"><Spelling :escape="escape" :text="word"/></nuxt-link>
<span v-else><Spelling :escape="escape" :text="word"/></span>
</Twemoji>
</span>