nuxt / nuxt/ui

`<UBadge variant="subtle">` does not pass lighthouse accessibility audit

Open
#1,284 10 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

v5
Dominant language
TypeScript
Stars
6.9k
Forks
1.1k
Avg merge
1d 7h
Merged PRs (30d)
57

Description

Environment

n/a

Version

2.12.3

Reproduction

https://stackblitz.com/edit/nuxt-ui-t7vmme?file=app.vue

Description

Noticed when deploying a sample app (https://nuxt-spooon.vercel.app) that the default styles for the subtle badge variant do not pass lighthouse accessibility guidelines. Obviously I could fix this by overriding the styles but it seems like this could be an easy win.

Might also be worth adding an automated accessibility test for all default elements (maybe by auditing the docs website?)

CleanShot 2024-01-25 at 12 03 57@2x

Additional context

No response

Logs

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked StackBlitz reproduction and inspect the default styles for the component. Run a Lighthouse accessibility audit against the reproduction, then confirm that the subtle variant meets the reported accessibility guideline; the issue also suggests considering automated accessibility coverage for default elements.

Written by the indexing model from the issue text.

Assessment

Tech stack
tailwindcss
Domain
accessibility, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.