How to Disable ScrollBar Customization of DaisyUI #3113
-
So, i have a global.css file in my project where i defined some custom properties for the scrollbars `@tailwind base; @layer utilities { .scrollbar::-webkit-scrollbar-track { .scrollbar::-webkit-scrollbar-thumb { .scrollbar::-webkit-scrollbar-thumb:hover { so, when i installed DaisyUi, the scrollbar was all set to some other default Properties |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
tailwind changes the *,
*:hover {
scrollbar-color: auto;
}
see: https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-scrollbar |
Beta Was this translation helpful? Give feedback.
-
I'm facing this exact issue, and I can't believe something this simple has taken almost 2 hours and still can't be resolved. I want daisyUI to not interfere with my custom scrollbar styles. It has absolutely nothing to do with Tailwind CSS. When I remove the daisyUI plugin, everything works fine. @tailwind base; body { ::-webkit-scrollbar { ::-webkit-scrollbar-track { ::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb:hover { |
Beta Was this translation helpful? Give feedback.
-
I don't know why, but when I manually set the width for webkit-scrollbar, the top and bottom arrows disappear and make it look much better, which is exactly what I want. If I use scrollbar-color and scrollbar-width, it immediately makes the arrows reappear at both ends of the scrollbar and the gutter will also have padding ::-webkit-scrollbar { Image is zoomed 400% |
Beta Was this translation helpful? Give feedback.
tailwind changes the
scrollbar-color
property of everything on your page. can you try adding this to remove the tailwind stylessee: https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-scrollbar