reactjs / reactjs/react.dev

Bug:- Accordion should collapse on click

Open
#5,706 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

seems like a bug the accordions are currently collapsing only when some other accordion is clicked, this should not be the case as the user should be able to manually close the accordion and section they want to close

https://user-images.githubusercontent.com/72331432/225832491-cb05ee96-7870-47e4-bf13-bd1e73d36b01.mp4

Contributor guide

Open the contributing guide

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.

Research direction

The issue identifies accordion behavior in the React documentation website but names no source file or test. Start by locating the accordion component and reproducing the attached video; done means the currently open section can be manually collapsed without requiring another accordion click.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.