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

[BUG] - Nested Accordion can't use different variant #3285

Closed
nealsun opened this issue Jun 19, 2024 · 1 comment · Fixed by #3291
Closed

[BUG] - Nested Accordion can't use different variant #3285

nealsun opened this issue Jun 19, 2024 · 1 comment · Fixed by #3291
Assignees
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working

Comments

@nealsun
Copy link

nealsun commented Jun 19, 2024

NextUI Version

2.4.2

Describe the bug

when Father accordion's variant set to splitted will affect child's accordion, here is the demo

export default function App() {
  const defaultContent =
    "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.";

  return (
    <Accordion variant="splitted">
      <AccordionItem key="1" aria-label="Accordion 1" title="Accordion 1">
        {defaultContent}
      </AccordionItem>
      <AccordionItem key="2" aria-label="Accordion 2" title="Accordion 2">
      <Accordion variant="light">
      <AccordionItem key="11" aria-label="Accordion 11" title="Accordion 11">
        {defaultContent}
      </AccordionItem>
      <AccordionItem key="22" aria-label="Accordion 22" title="Accordion 22">
        {defaultContent}
      </AccordionItem>
    </Accordion>
      </AccordionItem>
    </Accordion>
  );
}

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

see code above

Expected behavior

child accordion should independent of father's config

Screenshots or Videos

image

Operating System Version

macos

Browser

Chrome

Copy link

linear bot commented Jun 19, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants