fix(a11y): solid color for secondary text (#148)
This commit is contained in:
parent
730eeca5b2
commit
e45ecf55f2
19 changed files with 36 additions and 32 deletions
|
@ -10,7 +10,7 @@ const serverName = $computed(() => getServerName(account))
|
|||
|
||||
<template>
|
||||
<p>
|
||||
<span>{{ getShortHandle(account) }}</span>
|
||||
<span v-if="serverName" text="gray/95">@{{ serverName }}</span>
|
||||
<span text-secondary>{{ getShortHandle(account) }}</span>
|
||||
<span v-if="serverName" text-secondary-light>@{{ serverName }}</span>
|
||||
</p>
|
||||
</template>
|
||||
|
|
|
@ -67,7 +67,7 @@ function previewAvatar() {
|
|||
</button>
|
||||
<div flex flex-col>
|
||||
<ContentRich font-bold text-2xl break-words :content="getDisplayName(account, { rich: true })" :emojis="account.emojis" />
|
||||
<AccountHandle :account="account" op50 />
|
||||
<AccountHandle :account="account" />
|
||||
</div>
|
||||
</div>
|
||||
<div flex gap-2 items-center>
|
||||
|
@ -81,12 +81,12 @@ function previewAvatar() {
|
|||
</div>
|
||||
</div>
|
||||
<div v-if="account.note">
|
||||
<ContentRich text-4 text-gray :content="account.note" :emojis="account.emojis" />
|
||||
<ContentRich text-4 text-secondary :content="account.note" :emojis="account.emojis" />
|
||||
</div>
|
||||
<div flex flex-wrap gap-4>
|
||||
<div v-for="field in fields" :key="field.name" flex="~ gap-1" items-center>
|
||||
<div v-if="getFieldNameIcon(field.name)" op50 :class="getFieldNameIcon(field.name)" :title="field.name" />
|
||||
<div v-else op50 uppercase text-xs font-bold>
|
||||
<div v-for="field in fields" :key="field.name" flex="~ gap-1" items-center >
|
||||
<div v-if="getFieldNameIcon(field.name)" text-secondary :class="getFieldNameIcon(field.name)" :title="field.name" />
|
||||
<div v-else text-secondary uppercase text-xs font-bold>
|
||||
{{ field.name }} |
|
||||
</div>
|
||||
<ContentRich text-sm filter-saturate-0 :content="field.value" />
|
||||
|
@ -94,13 +94,13 @@ function previewAvatar() {
|
|||
</div>
|
||||
<div flex gap-5>
|
||||
<NuxtLink :to="getAccountPath(account)" exact-active-class="text-primary">
|
||||
<span font-bold>{{ formattedNumber(account.statusesCount) }}</span> <span op50>Posts</span>
|
||||
<span font-bold>{{ formattedNumber(account.statusesCount) }}</span> <span text-secondary>Posts</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink :to="`${getAccountPath(account)}/following`" exact-active-class="text-primary">
|
||||
<span font-bold>{{ humanReadableNumber(account.followingCount) }}</span> <span op50>Following</span>
|
||||
<span font-bold>{{ humanReadableNumber(account.followingCount) }}</span> <span text-secondary>Following</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink :to="`${getAccountPath(account)}/followers`" exact-active-class="text-primary">
|
||||
<span font-bold>{{ humanReadableNumber(account.followersCount) }}</span> <span op50>Followers</span>
|
||||
<span font-bold>{{ humanReadableNumber(account.followersCount) }}</span> <span text-secondary>Followers</span>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -9,7 +9,7 @@ defineProps<{
|
|||
<template>
|
||||
<div bg-base border="~ base" rounded w-80 z-900 overflow-hidden p-4 class="account-hover-card">
|
||||
<AccountInfo :account="account" />
|
||||
<div text-sm flex flex-row text-gray mt-4>
|
||||
<div text-sm flex flex-row text-secondary mt-4>
|
||||
<NuxtLink :to="`/${getFullHandle(account)}/`">
|
||||
{{ formattedNumber(account.statusesCount) }} Posts
|
||||
</NuxtLink>
|
||||
|
@ -22,6 +22,6 @@ defineProps<{
|
|||
{{ humanReadableNumber(account.followersCount) }} Followers
|
||||
</NuxtLink>
|
||||
</div>
|
||||
<ContentRich text-4 text-gray :content="account.note" :emojis="account.emojis" />
|
||||
<ContentRich text-4 text-secondary :content="account.note" :emojis="account.emojis" />
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -18,7 +18,7 @@ const { account, link = true, fullServer = false } = defineProps<{
|
|||
</div>
|
||||
<NuxtLink flex flex-col :to="link ? getAccountPath(account) : null">
|
||||
<ContentRich font-bold hover:underline :content="getDisplayName(account, { rich: true })" :emojis="account.emojis" />
|
||||
<AccountHandle :account="account" text-sm op35 />
|
||||
<AccountHandle :account="account" text-sm />
|
||||
<slot name="bottom" />
|
||||
</NuxtLink>
|
||||
<slot />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue