added support for sorting variant based classes as well#138
added support for sorting variant based classes as well#138tirthGajjar wants to merge 1 commit intoheybourn:masterfrom
Conversation
|
Hey @tirthGajjar, thanks for this, looks great. Could you add a test for it? Also how did you decide on that order? |
|
@praveenperera Thanks, I will add the test cases. About the proposed order or variants, Tailwind team suggests specific order when stacking varaints for a single classname, to make everything work. I just used this order to sort multiple classes, plus it looked a little more organized. |
|
Sounds good, there is also an Also does this sort stacked variants or just based on the first variant? I think it would be okay to just sort on the first variant. |
|
Yes, It sorts based on the stacked variants. |
|
Any updates about this? |
closes #131