zachdaniel / tails

Utilities for working with tailwind classes, like semantic merge, and conditional class lists.
MIT License
85 stars 9 forks source link

Fix spacing for naked rounded class #22

Closed marcpeabody closed 5 months ago

marcpeabody commented 5 months ago

The naked (no-suffix) version of the rounded class results in a missing leading space which causes it to meld to any preceding classes.

The first commit adds a breaking test to illustrate the bug and the second commit fixes the bug.

The doctest of merge("rounded", "px-2") |> to_string() in current main evaluates to "px-2rounded" with no space.

zachdaniel commented 5 months ago

🚀 Thank you for your contribution! 🚀

zachdaniel commented 5 months ago

Released in v0.1.11