-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
sidebar bgcolor not change with class name #1179
Comments
Have you checked whether the CSS |
install properly apply but not chage background color becuase defult color not remove |
@nishant-vagh The best approach to customize complex elements such as |
i have also try but
|
Have you tried to use this approach? https://www.flowbite-react.com/docs/customize/theme#option-3-create-a-reusable-component-with-a-custom-theme |
yes i have try it |
@nishant-vagh could you please create an example at codesandbox so someone can investigate the issue? |
|
Your sandbox isn't accessible. Let me know if you can still reproduce this. |
It looks like all you need to do is apply the color to the That looks like: import { Sidebar, theme } from 'flowbite-react';
import { twMerge } from 'tailwind-merge';
<Sidebar theme={{
inner: twMerge(theme.sidebar.root.inner, "bg-pink-800")
}}>
..
</Sidebar> This obviously isn't optimal - we should definitely consider moving all or most of the styling out of this I tested on your Code Sandbox and each of those works just fine. |
Steps to reproduce
Current behavior
Describe what is currently happening and why it's a problem.
Expected behavior
color set in side bar
expected
Context
What are you trying to accomplish? Does this only happen on a specific browser, screen size, or operating system?
If possible, provide a live example URL, screenshot, video, or a repository with the minimal reproduction of the issue.
The text was updated successfully, but these errors were encountered: