tailwind_formatter icon indicating copy to clipboard operation
tailwind_formatter copied to clipboard

Variant ordering may conflict with intended outcome

Open 100phlecs opened this issue 3 years ago • 1 comments

https://tailwindcss.com/docs/hover-focus-and-other-states#ordering-stacked-modifiers

even though prose-* variants have a default sort value that pushes them toward back, they actually need to be the last variant on a variant stack to apply correctly.

The quickest solution is to move all the prose-* modifiers above common variants like hover - but maybe there are more not accounted for.

100phlecs avatar Sep 04 '22 16:09 100phlecs

Fixed with https://github.com/100phlecs/tailwind_formatter/commit/1595240a2cb49d2f9ea5a573afb10c3f5a2f767d but leaving this issue open in case of other conflicts. If there are enough conflicts, then an alternative sorting approach may be the best path.

100phlecs avatar Sep 20 '22 22:09 100phlecs