Unified link colors for accessibility and easier maintenance

This commit is contained in:
Cagatay Civici 2023-12-31 11:35:02 +03:00
parent 65c6403acc
commit 69d9c0875b
21 changed files with 272 additions and 267 deletions

View file

@ -43,7 +43,7 @@
<template v-else-if="k === 'parameters'">
<div class="doc-option-params">
<span v-if="v.name" :class="{ 'text-primary-700': label === 'Slots', 'doc-option-parameter-name': label === 'Emits' }"> {{ v.name }} : </span>
<span v-if="v.name" class="doc-option-parameter-name"> {{ v.name }}: </span>
<template v-for="(value, i) in getType(v.type)" :key="value">
{{ i !== 0 ? ' | ' : '' }}<NuxtLink v-if="isLinkType(value)" :to="setLinkPath(value)" class="doc-option-link doc-option-parameter-type"> {{ value }} </NuxtLink>
<span v-else :class="{ 'doc-option-parameter-type': label === 'Emits' }" v-html="value"> </span>