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

Abierto
#701 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@Foxhoundn ya está trabajando en esto.

Desde el 6/10/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
4
Forks
0
Merge medio
16 h 28 min
PR fusionados (30 d)
9

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de qoretechnologies/reqore

Todos los issues de qoretechnologies/reqore

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.