Skip to content
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

fix(accordion): remove dividers from hidden accordion items #2219

Merged
merged 3 commits into from
Mar 7, 2024

Conversation

ryo-manba
Copy link
Member

Closes #2210

📝 Description

This PR addresses hidden AccordionItem components were still displaying dividers.

⛳️ Current behavior (updates)

In the current implementation, setting multiple AccordionItem components to hidden status within an Accordion results in stacking dividers. This behavior is inconsistent with the expected UI when AccordionItem components are hidden.

🚀 New behavior

With this update, dividers associated with hidden AccordionItem components will no longer be displayed.

💣 Is this a breaking change (Yes/No):

No.

📝 Additional Information

Copy link

changeset-bot bot commented Jan 9, 2024

🦋 Changeset detected

Latest commit: 97d7159

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@nextui-org/accordion Patch
@nextui-org/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jan 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextui-storybook-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2024 1:26pm

Copy link

vercel bot commented Jan 9, 2024

@ryo-manba is attempting to deploy a commit to the NextUI Team on Vercel.

A member of the Team first needs to authorize it.

@ryo-manba ryo-manba changed the title fix: remove dividers from hidden accordion items fix(accordion): remove dividers from hidden accordion items Jan 9, 2024
@jrgarciadev
Copy link
Member

Thank you @ryo-manba could you please add the patch changeset?

@ryo-manba
Copy link
Member Author

@jrgarciadev
I have finished working on it, so please review it when you have time!

@jrgarciadev jrgarciadev merged commit 2c3be59 into nextui-org:main Mar 7, 2024
7 of 8 checks passed
@ryo-manba ryo-manba deleted the fix/hidden-accordion-divider branch March 7, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - Hidden AccordionItem with Separator keep the Divider
2 participants