a11y: search button accessible name does not contain its visible label (WCAG 2.5.3)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
- #1631 di @hivecommons-hive — chiusa senza merge
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 39/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- accessibility, frontend
Direzione di ricerca
Read the navbar search rendering in docusaurus-plugin-search-local and the site's existing Footer swizzle under src/theme/. Compare the button's visible text and aria-label, then choose an upstream plugin fix or a local SearchBar swizzle. When the label includes the visible text, remove the NAVBAR_VIOLATIONS baseline entry from tests/e2e/accessibility.spec.js and confirm its retirement checks pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Finding
docusaurus-plugin-search-local (2.1.2) renders the navbar search button as:
<button class="DocSearch DocSearch-Button" aria-label="Search (Control+k)" aria-keyshortcuts="Control+k">
<span class="DocSearch-Button-Placeholder">Search</span>
<span class="DocSearch-Button-Keys"><span><svg .../></span><span>K</span></span>
</button>
Visible text is "Search K" (the Control key is an icon); the accessible name is "Search (Control+k)". The accessible name does not contain the visible label, which fails WCAG 2.5.3 Label in Name. axe-core reports it as label-content-name-mismatch (serious).
Why it surfaced now
axe-core 4.14.0 removed the experimental tag from label-content-name-mismatch, so it runs under wcag21a for the first time. Dependabot's bump in #1606 therefore failed tests/e2e/accessibility.spec.js on all 20 routes and both profile-dialog states. The button was non-conformant before; the scanner just could not see it.
Current state
#1606 carries the bump plus a NAVBAR_VIOLATIONS baseline entry in KNOWN_VIOLATIONS / KNOWN_STATE_VIOLATIONS. The spec's retirement tests fail as soon as the rule stops firing, so the baseline cannot outlive the fix.
Fix options
The plugin's SearchBar renders SearchButton without passing translations, so neither buttonText nor buttonAriaLabel can be changed from docusaurus.config.js. Realistic paths:
- Upstream fix in docusaurus-plugin-search-local (make the aria-label contain the visible text, e.g.
Searchwith the shortcut carried only byaria-keyshortcuts), then bump. - Swizzle the plugin's
SearchBartheme component intosrc/theme/(the site already wrapsFooter) and render the button with a conforming label. - Rendering the Control key as text rather than an icon does not help: "Search Ctrl K" is still not a substring of "Search (Control+k)".
When the fix lands, delete the NAVBAR_VIOLATIONS entry in tests/e2e/accessibility.spec.js; the retirement tests will insist on it.
Scope note for the hive
The baseline is the designed mechanism in the spec and is already in place. The remaining work is a production change (option 1 or 2), not a test change.
- Lingua principale
- JavaScript
- Stelle
- 0
- Fork
- 3
- Merge medio
- 7h 23m
- PR unite (30g)
- 605
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cncf/endusers
-
[guide] Public Sector User Group page names wrong Slack channelForse già presa @hivecommons-hive l’ha presa oggi. Apertaagent/guide documentation hive/claimed-by-guide stage/040-covered-by-pr
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
cncf/endusers#1874 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[quality] Architecture pages ship five diagrams with no alt text and one duplicated paragraph; MD045 is excluded for docs/architectures/**Forse già presa @hivecommons-hive l’ha presa oggi. Apertaagent/quality hive/claimed-by-scanner stage/040-covered-by-pr testing
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
cncf/endusers#1873 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[quality] Edit this page link on /resources/changelog/ 404s: the generated changelog has no source file on mainForse già presa @hivecommons-hive l’ha presa oggi. Apertaagent/quality hive/claimed-by-scanner stage/040-covered-by-pr testing
Difficoltà 1/5 1-3 ore Idoneità per principianti 35/100
cncf/endusers#1872 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[quality] /community/ group-status panel never checks the Platform Engineering User Group upstreamForse già presa @hivecommons-hive l’ha presa oggi. Apertaagent/quality stage/040-covered-by-pr testing
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
[sec-check] Stale and missing overrides floors leave 19 npm advisories live on mainForse già presa @hivecommons-hive l’ha presa oggi. Apertaagent/sec-check hive/claimed-by-sec-check security stage/040-covered-by-pr
Difficoltà 1/5 1-3 ore Idoneità per principianti 35/100
cncf/endusers#1867 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di cncf/endusers
Issue simili
-
CloudredirectAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
[ordering-review] workshop order graph: 1 confirmed ordering problem, 3 cycles are false positivesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
githubnext/gh-aw-workshop#4943 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Leonxlnx/taste-skill#164 ·
I maintainer di solito rispondono entro 1 giorno
-
Edit: ElyssaTV.tn@HDApertacheck:passed feeds:edit
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100