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
|
@ -13,6 +13,6 @@ const { account, link = true } = defineProps<{
|
|||
flex="~ col" min-w-0 md:flex="~ row gap-2" md:items-center
|
||||
>
|
||||
<ContentRich font-bold break-words hover:underline :content="getDisplayName(account, { rich: true })" :emojis="account.emojis" />
|
||||
<AccountHandle :account="account" op50 />
|
||||
<AccountHandle :account="account" />
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
|
|
@ -40,7 +40,7 @@ const timeago = useTimeAgo(() => status.createdAt, timeAgoOptions)
|
|||
<template>
|
||||
<div :id="`status-${status.id}`" ref="el" flex flex-col gap-2 px-4 transition-100 :class="{ 'hover:bg-active': hover }" tabindex="0" focus:outline-none focus-visible:ring="2 primary" @click="onclick" @keydown.enter="onclick">
|
||||
<div v-if="rebloggedBy" pl8>
|
||||
<div flex="~ wrap" gap-1 items-center text-gray:75 text-sm>
|
||||
<div flex="~ wrap" gap-1 items-center text-secondary text-sm>
|
||||
<div i-ri:repeat-fill mr-1 />
|
||||
<AccountInlineInfo font-bold :account="rebloggedBy" />
|
||||
reblogged
|
||||
|
@ -52,10 +52,10 @@ const timeago = useTimeAgo(() => status.createdAt, timeAgoOptions)
|
|||
<div flex>
|
||||
<StatusAccountDetails :account="status.account" />
|
||||
<div flex-auto />
|
||||
<div text-sm op50 flex="~ row nowrap" hover:underline>
|
||||
<div text-sm text-secondary flex="~ row nowrap" hover:underline>
|
||||
<CommonTooltip :content="createdAt">
|
||||
<a :title="status.createdAt" :href="getStatusPath(status)" @click.prevent="go">
|
||||
<time text-sm op50 hover:underline :datetime="status.createdAt">
|
||||
<time text-sm hover:underline :datetime="status.createdAt">
|
||||
{{ timeago }}
|
||||
</time>
|
||||
</a>
|
||||
|
|
|
@ -30,7 +30,7 @@ const visibility = $computed(() => STATUS_VISIBILITIES.find(v => v.value === sta
|
|||
:status="status"
|
||||
/>
|
||||
</StatusSpoiler>
|
||||
<div flex="~ gap-1" items-center op50 text-sm>
|
||||
<div flex="~ gap-1" items-center text-secondary text-sm>
|
||||
<div flex>
|
||||
<div>{{ createdAt }}</div>
|
||||
<StatusEditIndicator
|
||||
|
|
|
@ -11,11 +11,11 @@ const account = asyncComputed(() => fetchAccount(status.inReplyToAccountId!))
|
|||
<template>
|
||||
<NuxtLink
|
||||
v-if="status.inReplyToId"
|
||||
flex="~ wrap" items-center text-sm text-gray:85
|
||||
flex="~ wrap" items-center text-sm text-secondary
|
||||
:to="getStatusInReplyToPath(status)"
|
||||
:title="account ? `Replying to ${getDisplayName(account)}` : 'Replying to someone'"
|
||||
>
|
||||
<div i-ri:reply-fill rotate-180 op50 class="mr-1.5" />
|
||||
<div i-ri:reply-fill rotate-180 text-secondary class="mr-1.5" />
|
||||
<AccountInlineInfo v-if="account" :account="account" :link="false" />
|
||||
<span v-else>Someone</span>
|
||||
's post
|
||||
|
|
|
@ -17,6 +17,7 @@ const formatted = useFormattedDateTime(status.editedAt)
|
|||
:title="editedAt"
|
||||
:datetime="editedAt"
|
||||
font-bold underline decoration-dashed
|
||||
text-secondary
|
||||
> *</time>
|
||||
</CommonTooltip>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue