docs(home): improve lighthouse

This commit is contained in:
Benjamin Canac
2024-02-26 12:56:38 +01:00
parent dbbab8ded0
commit 06135f38ae
3 changed files with 17 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ if (process.server) {
<template>
<div class="relative bg-primary hover:bg-primary/90 transition-[background] backdrop-blur z-50 app-banner">
<UContainer class="py-2">
<NuxtLink v-if="to" :to="to" class="focus:outline-none" tabindex="-1">
<NuxtLink v-if="to" :to="to" class="focus:outline-none" aria-label="Nuxt UI Pro pricing" tabindex="-1">
<span class="absolute inset-0 " aria-hidden="true" />
</NuxtLink>
@@ -40,6 +40,7 @@ if (process.server) {
<div class="flex items-center justify-end lg:flex-1">
<button
class="p-1.5 rounded-md inline-flex hover:bg-primary/90"
aria-label="Close banner"
@click.prevent="hideBanner"
>
<UIcon name="i-heroicons-x-mark-20-solid" class="w-5 h-5 text-white dark:text-gray-900" />

View File

@@ -3,5 +3,6 @@ const value = ref(50)
</script>
<template>
<URange v-model="value" name="range" />
<label for="range" class="sr-only">Range</label>
<URange id="range" v-model="value" />
</template>