ChainOfThought: the header's aria-controls points at an element that is never rendered
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 88/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- accessibility, frontend
Línea de trabajo
Comienza en packages/elements/src/chain-of-thought.tsx, en las ubicaciones de ChainOfThoughtHeader y ChainOfThoughtContent alrededor de las líneas 80 y 185. Compara su uso de Collapsible con Reasoning, que utiliza un único Root para el trigger y el content, y después reproduce la secuencia de renderizado y clic proporcionada. Se considera terminado cuando el aria-controls del botón coincide con el id del elemento Steps renderizado y resuelve a un elemento existente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.5k
- Forks
- 291
- Merge medio
- 20 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de vercel/ai-elements
-
PromptInput: successful async submit clears text typed while the submit was pendingPosiblemente ocupada @NicolasMilliard la tomó hace 10 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
vercel/ai-elements#518 ·
Los mantenedores suelen responder en 1 día
-
Attachments: remove button stays invisible on keyboard focus and on touch screensPosiblemente ocupada @HardMax71 la tomó hace 27 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
vercel/ai-elements#507 ·
Los mantenedores suelen responder en 1 día
-
PromptInput rejects every file when accept lists file extensions (".xlsx")Posiblemente ocupada @HardMax71 la tomó hace 27 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
vercel/ai-elements#501 ·
Los mantenedores suelen responder en 1 día
-
Context: ContextReasoningUsage and ContextCacheUsage don't compile with ai 7Posiblemente ocupada @burrows99 la tomó hace 17 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
vercel/ai-elements#500 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
vercel/ai-elements#498 ·
Los mantenedores suelen responder en 1 día
Todos los issues de vercel/ai-elements
Issues similares
-
Parallel reticle_verify opens per-flow leases without the source lease's ignoreHTTPSErrorsPosiblemente ocupada @as992949791 la tomó hoy. Abiertogood first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
reticlehq/reticle#2033 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area:quality p3-medium ready-for-agent type:docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
fderuiter/deruiter.dev#3589 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
manfredsteyer/angular-oauth2-oidc#1514 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
marmelab/react-admin#11431 ·
Los mantenedores suelen responder en 1 día