Improve badge dropdown behavior with auto-close and smooth animations#72
Improve badge dropdown behavior with auto-close and smooth animations#72Katotodan wants to merge 2 commits intolayer5io:masterfrom
Conversation
Signed-off-by: DANIEL KATOTO <katotodan@gmail.com>
Signed-off-by: DANIEL KATOTO <katotodan@gmail.com>
|
|
Hello @Rajesh-Nagarajan-11 can you review this PR? |
|
Any video will be helpful + can you check what's the issue in PR preview |
|
Vidoe before change before.movAfter the change, I added the animation, and if only one question is opened, the others may be closed automatically. After.change.mov |
|
@Rajesh-Nagarajan-11 please find the attached video above. |
|
I can see the lag when open , it's actual behaviour or issue from your side? |
|
@Rajesh-Nagarajan-11 that lag was only visible when recording my screen, but when I stopped recording, there is no lag. |
|
@Katotodan Thank you for your contribution! Let's discuss this during the website call tomorrow at 6:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would 🙂 |
kishore08-07
left a comment
There was a problem hiding this comment.
@Katotodan Kindly use the Sistent Accordion component to address this issue. You can refer to the controlled accordion example here: https://layer5.io/projects/sistent/components/accordion/code#Controlled%20Accordion

Notes for Reviewers
This PR improves the user experience of the dropdowns on badges.layer5.io, specifically in the General and Certificate sections.
What’s changed
Ensured that only one dropdown can be open at a time, opening a new dropdown automatically closes any previously opened one on the section.
Added smooth open and close animations to make the interaction feel more natural and polished.
Why this matters
Prevents UI clutter caused by multiple open dropdowns.
Improves clarity and focus for users navigating badge information.
Enhances overall UX with subtle, modern animations.
This PR fixes #71
Signed commits