From ed341061c6114f48e0d0d371cf2b4e17919b191f Mon Sep 17 00:00:00 2001 From: Ivan Bochkarev Date: Wed, 11 Mar 2026 23:05:12 +0600 Subject: [PATCH 1/2] fix(a11y): improve accessibility for Lighthouse score (fixes #1837) - Add @nuxt/a11y module for automated a11y checks - Add skip-to-main-content link and id on UMain - Add alt text to deploy page NuxtImg logos - Improve UInputCopy button aria-label (contextual) - Add browser tests for skip link presence and navigation --- app/components/UInputCopy.vue | 2 +- app/layouts/default.vue | 9 ++++++++- app/pages/deploy/[slug].vue | 2 +- app/pages/deploy/index.vue | 2 +- nuxt.config.ts | 1 + package.json | 1 + pnpm-lock.yaml | 22 ++++++++++++++++++++++ test/browser/interactions.spec.ts | 22 ++++++++++++++++++++++ 8 files changed, 57 insertions(+), 4 deletions(-) diff --git a/app/components/UInputCopy.vue b/app/components/UInputCopy.vue index 6ac64d3f1..ff95442c3 100644 --- a/app/components/UInputCopy.vue +++ b/app/components/UInputCopy.vue @@ -45,7 +45,7 @@ function copyValue() { '!text-primary cursor-default': copied, 'cursor-copy': !copied }" - aria-label="copy button" + :aria-label="label ? `Copy "${label}" to clipboard` : 'Copy command to clipboard'" @click="copyValue" /> diff --git a/app/layouts/default.vue b/app/layouts/default.vue index 16858551c..c2ea1cc20 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -17,6 +17,13 @@ onMounted(() => {