Closed evgeshaDoc closed 3 weeks ago
wrong implementation by me
@evgeshaDoc Can you please tell me what you changed ?
I am facing the same issue and I can't find what I'm doing wrong...
same here
@evgeshaDoc Can you please tell me what you changed ?
I am facing the same issue and I can't find what I'm doing wrong...
@LuckyStar04 @Mirinael
try to use it like it is used here basically all you need is wrap your sidebar component with SidebarProvider
@LuckyStar04 @Mirinael
try to use it like it is used here basically all you need is wrap your sidebar component with SidebarProvider
Thanks a lot!
But now I am facing the style issues,
it seems all the text-sidebar-foreground
css class not working.
I've tried add sidebar css variables to index.css
but not working,
any clues?
@LuckyStar04 @Mirinael try to use it like it is used here basically all you need is wrap your sidebar component with SidebarProvider
Thanks a lot! But now I am facing the style issues, it seems all the
text-sidebar-foreground
css class not working. I've tried add sidebar css variables to index.css but not working, any clues?
I had the same issue. Add this to your tailwind.config.js
sidebar: {
'DEFAULT': 'hsl(var(--sidebar-background))',
'foreground': 'hsl(var(--sidebar-foreground))',
'primary': 'hsl(var(--sidebar-primary))',
'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
'accent': 'hsl(var(--sidebar-accent))',
'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
'border': 'hsl(var(--sidebar-border))',
'ring': 'hsl(var(--sidebar-ring))',
},
Also check this: https://github.com/unovue/shadcn-vue/blob/e0d4980e31161482e94852ddc2a1277c68a86555/apps/www/tailwind.config.js
Reproduction
in description
Describe the bug
Injection error on initializing Sidebar component, wrapped in my own component.
A component looks like this
System Info
Contributes