feat: add support for space separated cssClasses in settings#664
feat: add support for space separated cssClasses in settings#664brianvoe merged 3 commits intobrianvoe:masterfrom
Conversation
|
Not as easy as I thought Maybe the right change is to have |
|
I agree with the premise. The way I would tackle it is if someone sets a field on cssClasses then you would add it to the existing string for example "ss-main my-class tailwind-sucks" then when we need to add/remove we split on string and loop through add and loop through remove. If you dont want to tackle it throw me a donation and ill get it knocked out. |
|
I was going to donate anyways, you're on the nice list :) – but I want to do it myself and feel helpful if I can.
Sure, this basically always keeps My error is generating from the fact that somehow classes are used for both interactivity and styling which makes it hard to reason about this, at least for me. That error was generated by pressing I wonder if we need to always keep the default classes, and only use the first class for the interactions? Or we separate styling and interactivity so that this is not an issue? WYT? |
|
Thanks for the kind words!
I get your thought process but if we remove the primary initial class then you would have to write all the css for everything else underneath it. At that point you might as well just copy the full css and just make your own changes and use that.
If we keep the primary initial class then you shouldnt get the error anymore. In future releases that would probably be breaking change major release changes i can update interactivity to be not reliant on css classes. |
|
Ok let me give it a shot at:
|
|
There is a positioning regression introduced after a3f5f65 that makes me uncomfortable pushing new code. I'll wait until that fixed. See repro here where Details |
|
Ok I updated the PR. WYT? |
|
I think everything looks good to me. Nice Job! If your ready ill pull it in and double check a few things a get a release out. Also thanks for the donation. I really appreciate it! It will be nice date night money or the wife and I. |
|
Go for it @brianvoe! I appreciate you letting me contribute. |
|
Published v3.3.0 Nice Job! |
This makes it easier to use tailwind or simply add more classes instead of simply override them, for example