Skip to content

chore(app): bump @nuxt/ui to 4.12 and empty the accessibility baseline (Closes #3950) - #3954

Merged
gutzbenj merged 3 commits into
mainfrom
chore/3950-nuxt-ui-4-12
Nov 10, 2026
Merged

gutzbenj merged 3 commits into
mainfrom
chore/3950-nuxt-ui-4-12

Conversation

@gutzbenj

Copy link
Copy Markdown
Member

Closes #3950.

What changed

  • @nuxt/ui ^4.11.3 -> ^4.12.0 in app/package.json (4.12.0 is the latest 4.12.x; reka-ui follows to 2.11.0, no pin needed). Only this dependency was changed in the lock file's direct specifiers; Dependabot's group PR chore(deps): bump the app group across 1 directory with 24 updates #3901 is untouched.
  • app/tests/e2e/accessibility/baseline.json is empty (it held aria-required-children x2, scrollable-region-focusable and aria-hidden-focus, all fixed upstream by fix(SelectMenu): keep controls outside the listbox nuxt/ui#7096 and reka-ui#2980).
  • app/ACCESSIBILITY.md: baseline empty, the four former entries and their fixes listed, last full run recorded.
  • CHANGELOG_APP.md: one entry.
  • DataViewer.test.ts: the 4.12 changelog makes the Pagination aria-labels come from Nuxt UI's locale (fix(Pagination): localize aria-label of controls and pages nuxt/ui#7151); the buttons are now "Last page" (English) and "Letzte Seite" (German) where Reka's hard-coded "Last Page" was shown. The test selector follows. This is the only breaking change that touched the app. The app passes its own locale to UApp, which still wins over the new automatic i18n locale, so app.vue is unchanged.

Run (Chrome on macOS, as Playwright's Firefox does not start here)

  • pnpm lint: clean. pnpm typecheck: clean.
  • pnpm test:ci: 104 files, 2996 tests passed (3004 before: the 8 per-entry baseline tests go with the entries).
  • pnpm test:a11y --workers=3 (production build) against the empty baseline: 393 passed, 362 scans of 16 pages, no violation, none retried.
  • pnpm test:e2e: 405 passed, 26 failed, 3 skipped on the first run; 3 of the failures (ask-weather x2, csp widget) passed on the rerun. The remaining 23 fail identically on the unbumped tree (@nuxt/ui 4.11.3; same 23 tests, pages.spec.ts providers/home, tab-bar.spec.ts blocked storage, i18n-coverage.spec.ts): the local backend on :7890 is an older build (0.184.0) than the app expects. They are not caused by this bump and should pass in CI against the current backend.

🤖 Generated with Claude Code

https://claude.ai/code/session_0187kUCUFKYgEkY8mDbH23V8

Closes #3950)

@nuxt/ui 4.12.0 (reka-ui 2.11.0) fixes the three rules the baseline held: the station
USelectMenu's listbox (nuxt/ui#7075, fixed by #7096) and the toast viewport's focus proxies
(unovue/reka-ui#2776, fixed by #2980). The scan now passes with an empty baseline: 393 tests,
362 scans, no violation.

Nuxt UI localizes the pagination labels: the DataViewer test looks for "Last page", where
Reka's English "Last Page" was hard-coded before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187kUCUFKYgEkY8mDbH23V8
GH-3950)

Reka UI 2.11.0 no longer sets aria-hidden on the toast viewport's focus proxies, so the guard
that required it never matched and the proxies were walked as stops. It matches a span with
tabindex="0" that is the first or last child of the role="region" holding the toasts' list, in
focus-guard.ts, held by a unit test on a synthetic DOM. ACCESSIBILITY.md says so.

The changelog entry names what a user sees (the pager's labels in German and English only; the
other languages are GH-3955) and drops the baseline. pnpm dedupe collapses the second
@tanstack/vue-virtual (3.13.39) into 3.13.52.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187kUCUFKYgEkY8mDbH23V8
@gutzbenj
gutzbenj merged commit 2c3d89f into main Nov 10, 2026
18 checks passed
@gutzbenj
gutzbenj deleted the chore/3950-nuxt-ui-4-12 branch November 10, 2026 18:01
gutzbenj added a commit that referenced this pull request Nov 10, 2026
…" by shape and are named (Closes #3951, Closes #3952) (#3956)

Closes #3951, Closes #3952.

## What changed

**#3952 (primary icons)**
- `tests/unit/button-contrast.test.ts` now resolves `primary` and `brand` through `main.css` (`primary` is `brand` by `app.config.ts`; `.dark` changes which shade is `--ui-primary` but redefines no `--color-brand-*`, which a test holds) and holds every `text-primary-N` / `text-brand-N` class to 4.5:1, by day on white and at night on the dark card, like every other text colour. The `NOT_CHECKED` exemption is gone.
- The 48 `text-primary-500` icons and spinners are `text-primary-600 dark:text-primary-500`: 4.87:1 on white by day (was 3.47:1), and the same shade at night as before (4.53:1 on a card; 600 would be 3.22:1 there).

**#3951 (meteogram panel toggles)**
- A toggle that is on draws the filled Phosphor variant of its icon (`i-ph-wind-fill`), one that is off the outline: a cue by shape (1.4.1) that survives forced colours. The series colour, wash and edge are unchanged.
- Each toggle has `aria-label` = `t(toggle.title)`, the same key as its `title` (no new strings).

Docs: `app/ACCESSIBILITY.md` (1.4.1, 1.4.3/1.4.11, 4.1.2), `CHANGELOG_APP.md`.

## Per-use decisions for primary
- Icons beside headings and the hand-pointing/map-pin hints, spinners (`animate-spin`): were 500, now `600` / `dark:500`. They meet 4.5:1, so there is no need for the 3:1 non-text bar and no allow-list; darkening costs the look next to nothing, and a list of exemptions would be something to keep.
- Links (`text-primary-700 dark:text-primary-500` / `dark:text-primary-400`) and the widget link (700/800, 400/300): unchanged, already at 4.5:1 or more (6.9:1 by day, 4.5:1 or more at night).

## Checks
- `pnpm lint`: clean
- `pnpm typecheck`: clean
- `pnpm test:ci`: 104 files, 3015 tests passed (includes `button-contrast.test.ts`, 113 tests, and 2 new Meteogram component tests: filled icon only while on, and `aria-label` equals the title and is distinct per toggle)
- `E2E_BROWSER=chrome pnpm test:a11y -g "meteogram|settings|support"`: 82 passed (Chrome; the baseline is of Firefox on Linux)
- #3954 was still open when this was pushed, so main is not merged in yet.


Review fixes (Opus 5.5): the class scan credited to the right test, two changelog bullets, a missing shade reported instead of thrown, and the paper, gray-50, primary-50 and night canvas grounds held. Merged main after #3954 (@nuxt/ui 4.12).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187kUCUFKYgEkY8mDbH23V8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app Touches the Nuxt app under app/ dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

app: bump @nuxt/ui to 4.12 (reka-ui 2.11) and empty the accessibility baseline

1 participant