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] - dividerProps in Accordion not working #3390

Closed
mauriciabad opened this issue Jul 2, 2024 · 1 comment · Fixed by #3392
Closed

[BUG] - dividerProps in Accordion not working #3390

mauriciabad opened this issue Jul 2, 2024 · 1 comment · Fixed by #3392
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working

Comments

@mauriciabad
Copy link
Contributor

mauriciabad commented Jul 2, 2024

NextUI Version

2.4.2

Describe the bug

The dividerProps does not work inside Accordion component.

Specifically, I'm trying to change the divider colour.

Your Example Website or App

CodeSandbox

Steps to Reproduce the Bug or Issue

import React from "react";
import {Accordion, AccordionItem} from "@nextui-org/react";

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
      dividerProps={{
        className: "bg-red-500", // <-- 🔴 Not working
      }}
    >
      <AccordionItem key="1" aria-label="Accordion 1" title="Accordion 1">
        {defaultContent}
      </AccordionItem>
      <AccordionItem key="2" aria-label="Accordion 2" title="Accordion 2">
        {defaultContent}
      </AccordionItem>
      <AccordionItem key="3" aria-label="Accordion 3" title="Accordion 3">
        {defaultContent}
      </AccordionItem>
    </Accordion>
  );
}

Expected behavior

To be able to change the accordion divider's colour.

Screenshots or Videos

No response

Operating System Version

macOS

Browser

Chrome

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