Proposed ability to add sub & pseudo classes #93
- SI
Instead of writing: `hover:foo hover:bar hover:baz hover:after:foo hover:after:baz`
This proposes: `clsx({ hover: ["foo", "bar", "baz", { after: ["foo", "baz"] }] });`
Please excuse the reformatting of code :)
- LU
- LU
This is a breaking change, which means it cannot proceed. clsx is heavily depended on & is feature-complete. Any behavior modifications would have to be surfaced as a separate, standalone module (eg, `clsx/lite`).
Also, on a general note, please try to refrain from code-style changes as it makes PRs harder to review.
- SItest/classnames.js:83–8705202c6
Thanks, I didn't propose it as a non-breaking change. You are already doing versioned releases; this would be a new breaking release, no?
I removed those because they no longer apply as truthy - not as a fix, but a change.
I tried to keep the code style changes to a min.
- SI
No review summary.
- LU
Closing this PR for the reason mentioned above. You may open an issue to propose a `clsx/nested` (🤷 name tbd) submodule and invite discussion. I think this could be useful to some, but it definitely can't be added as the default behavior.
Thank you for the work & suggestion!
- SI
Thanks for checking it out :) I'll put it in a submodule and create a new PR.