Skip to content

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

Merged
jrgarciadev merged 3 commits into
heroui-inc:mainfrom
ryo-manba:fix/hidden-accordion-divider
Mar 7, 2024
Merged

fix(accordion): remove dividers from hidden accordion items#2219
jrgarciadev merged 3 commits into
heroui-inc:mainfrom
ryo-manba:fix/hidden-accordion-divider

Conversation

@ryo-manba
Copy link
Copy Markdown
Contributor

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

@ryo-manba ryo-manba requested a review from jrgarciadev as a code owner January 9, 2024 13:53
@changeset-bot
Copy link
Copy Markdown

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

@vercel
Copy link
Copy Markdown

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

@vercel
Copy link
Copy Markdown

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
Copy Markdown
Member

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

@ryo-manba
Copy link
Copy Markdown
Contributor Author

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

@jrgarciadev jrgarciadev merged commit 2c3be59 into heroui-inc:main Mar 7, 2024
@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