ReqoreTag with onClick is focusable but not a button: no role, Enter and Space do nothing

Aperta
#701 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Foxhoundn ci sta già lavorando.

Dal 6/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

What the landing page needs

The hero's Qonsole card on qorus.cloud has a mode switch ("Design mode" / "Chat mode") that the redesign draws as a soft tag (ReqoreTag appearance="soft" intent="info"). A clickable ReqoreTag (onClick, so interactive) is a div with tabIndex={0} but no role="button" and no key handler (src/components/Tag/index.tsx, the tabIndex={interactive ? 0 : undefined} line): a keyboard user can tab to it and nothing happens on Enter or Space, and a screen reader announces plain text. Testing Library's getByRole('button', …) does not find it either.

What would fix it

When a tag is interactive: role="button" (or a real <button>), Enter and Space call onClick, and aria-pressed passes through for a toggle. A story with a toggle tag driven by the keyboard, and a play test that presses Enter and Space.

Meanwhile

The site keeps a native <button> (no styles of its own except a focus ring) around a non-interactive ReqoreTag: ModeBadge in src/components/home/QonsolePrompt.tsx (qoretechnologies/qorus-saas-landing, branch feature/keycloak-theme), marked TODO(reqore) with this issue.

Lingua principale
TypeScript
Stelle
4
Fork
0
Merge medio
16h 28m
PR unite (30g)
9

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 qoretechnologies/reqore

Tutte le issue di qoretechnologies/reqore

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.