Open
Description
Describe the bug
In the FAQ section, when a question is expanded by clicking on its tab header, clicking on the same header again does not toggle it closed. This behavior forces the user to click the "x" icon to close the tab, creating an inconsistent experience.
Steps To Reproduce
- Go to the FAQ section on the JSON Schema website.
- Click on the "+" icon of any question to expand its content, then click on 'x' icon, it will close
- Click on the same tab header again.
- Observe that the tab remains open instead of toggling closed.
Expected Behavior
Clicking on the tab header of an expanded FAQ question should close the accordion, allowing users to toggle it on and off by clicking the same header.
Screenshots
WhatsApp.Video.2025-01-11.at.14.54.47.mp4
Device Information [optional]
- OS: Windows 11 (as recording shows mouse cursor)
- Browser: Browser
- version:
Are you working on this issue?
Yes
Do you think this work might require an [Architectural Decision Record (ADR)]? (significant or noteworthy)
No