-
-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Bug: FAQ Accordion Tabs Do Not Close on Repeated Clicks #1290
Comments
@Karan-Palan I think this isn't an issue to be noticed because buttons are provided with some reason and functionality to do the required action. |
@Utkarsh-123github Thank you for sharing your perspective. While I agree that buttons are provided for specific functionality, the issue here is regarding the user experience and consistency. Accordions are generally expected to toggle open and closed when clicking on the same header, which is a standard behavior across many interfaces. Since the accordion opens on clicking on it, it should close the expanded section too by clicking. This is my POV, will wait for the maintainers and other community members views on it before proceeding with Pull requests on any issues. |
Hii @DhairyaMajmudar, I would love to work on this issue, if no one is working? |
@shantanu2107 I'm working on other issues rn, feel free to pick this up once assigned |
@shantanu2107 , if you're not working on this one, I can work on it now |
I will raise a PR tomorrow. @Karan-Palan |
@shantanu2107 , ping me if you need any help with it |
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
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]
Are you working on this issue?
Yes
Do you think this work might require an [Architectural Decision Record (ADR)]? (significant or noteworthy)
No
The text was updated successfully, but these errors were encountered: