[AXE] Announcement bar fails accessibility on every page

Aperta
#145 0 commenti 0 reazioni 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

@matej-marcisovsky ci sta già lavorando.

Dal 16/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug

Where: every page. The purple top banner, currently "✨ Strapi MCP is now Generally Available".

What's wrong (Axe, 22 of 22 pages):

Image
  • color-contrast (serious): the link inside the banner is text-amber-200 on bg-strapi-purple-600, which is below the WCAG AA minimum of 4.5:1 for small text.
  • region (moderate): the banner is a plain <div> outside any landmark (<header>, <main>, <nav>, <aside>, …), so screen-reader users navigating by landmarks skip it.

Code: components/page-builder/components/navigation/top-banner/StrapiTopBanner.tsx

  • wrapper: <div data-top-banner className="bg-strapi-purple-600 …">
  • link color: [&_a]:text-amber-200 (hover: amber-100)

How to reproduce: run the Axe suite, or in Chrome DevTools → Lighthouse → Accessibility, open any page and look for "Background and foreground colors do not have a sufficient contrast ratio" pointing at the banner link.

Done when:

  • the banner link reaches at least 4.5:1 contrast (e.g. white with an underline, or a lighter/darker shade, checked with a contrast checker)
  • the banner is inside a landmark, e.g. the wrapper becomes <aside aria-label="Announcement"> (label from translations)
  • the Axe suite no longer reports color-contrast or region for the banner on any page

Note: one component fix removes the most frequent Axe violations site-wide.

Lingua principale
TypeScript
Stelle
6
Fork
5
Merge medio
5g 6h
PR unite (30g)
7

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di strapi/website

Tutte le issue di strapi/website

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.