Conversation
|
This is an interesting idea! I'm currently sick, but will have a look asap ❤️ |
|
Thanks @tomcru . If you have some idea or think that I could improve something, please let me know and I'll update the PR. |
|
I've had some time to think about this and I think it would be great if setting any classes in This, however, does not work with the current approach - because HolyLoader is styled inline. If we were to switch it to a class-based approach (for example, use I can test this as soon as possible, otherwise feel free to hack away at it in this PR ✌️ Typed on my phone so it might be a bit messy 🫣 Update: this seems to be a bit tricky because of CSS cascading rules & tailwind. At first look, I could only get it to work with appending |
|
Maybe the way to go is to leave HolyLoader with default styles and let it customize only through standard props (className, style). I mean, remove the Maybe then it would be nice to expose two components, the current If the default styles are loaded through .css file, this would work? |
Description
It's a proposition and shouldn't be merged, yet.
This change allows to use
classNameproperty onHolyLoadercomponent, for example:What means this? Mainly that it's more customizable, but also that works properly with tailwindcss (which is important to me).
Why it's a breaking change? Because if I use a className like
bg-red-400, it's overrided by the style prop background (because of css specificity), so I wrote this:What should be the correct behavior?
Type of change
Please delete options that are not relevant.
Checklist: