Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

ChainOfThought: the header's aria-controls points at an element that is never rendered

オープン 初心者向け
#505 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

2026年10月2日 から。

  • #506 @HardMax71 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript

調査の方向性

packages/elements/src/chain-of-thought.tsx の、80 行目と 185 行目付近にある ChainOfThoughtHeader と ChainOfThoughtContent の箇所から始めます。それらの Collapsible の使用方法を、trigger と content に 1 つの Root を使用している Reasoning と比較し、続いて提供された render と click のシーケンスを再現します。完了条件は、ボタンの aria-controls がレンダリングされた Steps 要素の id と一致し、既存の要素を参照することです。

索引モデルが issue の本文から書いたものです。

説明

ChainOfThoughtHeader wraps its trigger in its own <Collapsible> (chain-of-thought.tsx#L80) and ChainOfThoughtContent wraps the content in a second one (#L185). Radix generates a content id per root, so the trigger's aria-controls names the content of the header's root, which never renders, and the content that does render has an id nothing refers to. Assistive tech loses the link between the button and the steps it expands.

Repro (registry main 6a9d5b1, Chrome):

render(
  <ChainOfThought>
    <ChainOfThoughtHeader />
    <ChainOfThoughtContent>Steps</ChainOfThoughtContent>
  </ChainOfThought>
);
await userEvent.click(screen.getByRole("button"));

const controls = screen.getByRole("button").getAttribute("aria-controls");
controls === screen.getByText("Steps").id; // false
document.getElementById(controls); // null

Expected: aria-controls is the id of the rendered content, as in Reasoning, which uses one Collapsible root for its trigger and content.

主要言語
TypeScript
スター
2.5k
フォーク
291
平均マージ
20分
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

vercel/ai-elements のほかの issue

vercel/ai-elements の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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