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

Open
#701 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Foxhoundn is already working on this.

Since Oct 6, 2026.

Assessment

This issue has not been assessed yet.

Description

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.

Dominant language
TypeScript
Stars
4
Forks
0
Avg merge
16h 28m
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from qoretechnologies/reqore

All issues in qoretechnologies/reqore

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.