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

オープン
#701 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Foxhoundn がすでに取り組んでいます。

2026年10月6日 から。

評価

この issue はまだ評価されていません。

説明

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.

主要言語
TypeScript
スター
4
フォーク
0
平均マージ
16時間 28分
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

qoretechnologies/reqore のほかの issue

qoretechnologies/reqore の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。