mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-29 16:57:47 +01:00
fix: add aria-label attributes for accessibility and update text-muted class for consistency
This commit is contained in:
@@ -222,6 +222,7 @@ function goHome() {
|
|||||||
:icon="dark ? 'i-ph-moon-duotone' : 'i-ph-sun-duotone'"
|
:icon="dark ? 'i-ph-moon-duotone' : 'i-ph-sun-duotone'"
|
||||||
color="neutral"
|
color="neutral"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
aria-label="Toggle dark mode"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
size="xl"
|
size="xl"
|
||||||
@click.prevent="toggleDark"
|
@click.prevent="toggleDark"
|
||||||
@@ -238,6 +239,7 @@ function goHome() {
|
|||||||
icon="i-ph-translate-duotone"
|
icon="i-ph-translate-duotone"
|
||||||
color="neutral"
|
color="neutral"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
aria-label="Change language"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
size="xl"
|
size="xl"
|
||||||
@click.prevent="changeLocale(currentLocale!.code === 'en' ? 'fr' : currentLocale!.code === 'fr' ? 'es' : 'en')"
|
@click.prevent="changeLocale(currentLocale!.code === 'en' ? 'fr' : currentLocale!.code === 'fr' ? 'es' : 'en')"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const formatDate = computed(() => useDateFormat(props.message.createdAt, 'D MMMM
|
|||||||
{{ t(message.content || '') }}
|
{{ t(message.content || '') }}
|
||||||
</UCard>
|
</UCard>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-muted opacity-0 group-hover:opacity-80 duration-500 flex text-xs italic justify-end">
|
<div class="text-muted-foreground opacity-0 group-hover:opacity-80 duration-500 flex text-xs italic justify-end">
|
||||||
{{ formatDate }}
|
{{ formatDate }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ const dynamicComponent = computed(() => componentMap[props.message.type])
|
|||||||
<span class="md:hidden">Arthur DANJOU</span>
|
<span class="md:hidden">Arthur DANJOU</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-muted opacity-0 group-hover:opacity-80 duration-500 flex text-xs italic justify-start">
|
<div class="text-muted-foreground opacity-0 group-hover:opacity-80 duration-500 flex text-xs italic justify-start">
|
||||||
{{ formatDate }}
|
{{ formatDate }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user