-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: scrollbar-color causing unnecessary repaints #3166
Comments
Thank you @CarlosBalladares
for reporting issues. It helps daisyUI a lot 💚
|
this is the css rule Lines 5 to 11 in e3cd43a
|
with scrollbar-color in place, i cant customize the scrollbar with webkit |
Is it a fix yet? Do I have to remove daisyui now to be able to style scrollbar? |
@danterohlin @binkybarnes You can style the scrollbar using CSS Example with Tailwind CSS utility classes: class="[scrollbar-color:blue_yellow]" In case you're using Also, this is one of the base styles. Which means can be disabled from config. Docs: |
@danterohlin @binkybarnes both are correct. I can't customize scrollbar in any way when daisyui.com/docs/config#base is enabled (default). Disabling the This issue is not about customizing scrollbar, even though the solution provided by the author fixes the scrollbar customization issue:
|
What version of daisyUI are you using?
4.12.8
Which browsers are you seeing the problem on?
Edge Version 127
Reproduction URL
https://gph5tr-5173.csb.app/
Describe your issue
A css rule causes unnecessary repaints.
This rule is causing some unnecessary repaints when you hover any html element in the page.
To visualize in devtools enable paint flashing and hover over the two square boxes or any html element in the example link. Although nothing changes a paint flash appears when you hover the element. This behaviour stops when you remove the css selectors related to the scollbar color. This is also present in the daisyui homepage.
Potential solutions:
Remove this selector and add a utility class to customize the scrollbar only where needed.
The text was updated successfully, but these errors were encountered: