Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

InfoTooltip is not keyboard reachable and has no accessible name

Aperta Adatta ai principianti
#1,829 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
84/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript

Direzione di ricerca

Inizia da src/custom/CustomTooltip/infoTooltip.tsx e segui il modo in cui InfoTooltip passa il titolo e le props a CustomTooltip. Verifica che il controllo risultante sia raggiungibile da tastiera, abbia un nome accessibile e continui ad aprire il testo della guida quando riceve il focus, preservando i siti di chiamata esistenti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

InfoTooltip renders its icon in a plain <div>:

https://github.com/layer5io/sistent/blob/master/src/custom/CustomTooltip/infoTooltip.tsx

<CustomTooltip title={helpText} {...props}>
  <div style={{ display: 'flex', ... }}>
    <InfoOutlinedIcon {...iconSmall} />
  </div>
</CustomTooltip>

That element has no accessible name, no role, and no tab index, so the help
text it carries is unreachable for a keyboard or screen-reader user:

  • nothing announces it in browse mode - the icon is decorative markup;
  • it cannot be focused, and MUI opens a tooltip on focus, so the text has no
    keyboard route at all;
  • CustomTooltip hands MUI a ReactNode title, and MUI's Tooltip only sets
    aria-label from a title when that title is a string (titleIsString ? title : null), so the closed tooltip contributes no name either.
Why it matters here

meshery-cloud renders a per-field information affordance on every schema-driven
form (the field's description from meshery/schemas). InfoTooltip is
exactly the component for that job, but it cannot be used: our accessibility
requirement is that the affordance is reachable and announced. We hand-assemble
CustomTooltip + IconButton component="span" + an aria-label instead, which
is duplicated design-system markup living in a consumer.

Suggested fix

Render the icon in a ButtonBase/IconButton (component="span" keeps it
legal inside a <label>-adjacent layout) rather than a <div>, and accept an
aria-label - defaulting to the helpText when it is a string - so the
component names itself. That keeps every existing call site working and makes
the affordance reachable by Tab, which also opens the tooltip.

Happy to raise the PR if the shape above looks right.

Lingua principale
TypeScript
Stelle
137
Fork
239
Merge medio
4g 14h
PR unite (30g)
5

Preparare l'ambiente

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 layer5io/sistent

Tutte le issue di layer5io/sistent

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.