Closed ApplePieGiraffe closed 4 months ago
@mskelton could you please take a look?
@ApplePieGiraffe This behavior is intentional since text-sm
and similar utilities add both font size and line height.
https://github.com/dcastil/tailwind-merge/issues/257#issuecomment-1600762499
Describe the bug The following classes
...get applied to the element correctly
But if I add a
text-*
class after theleading-*
class...the
"leading-none"
class gets removed for some reasonBut it works fine if the
leading-*
class comes after thetext-*
classIdk if this is a niche thing because I've only observed this with
leading-*
classes but I've run into this a couple of timesTo Reproduce See this Codesandbox. I've included an example of merging the same set of classes with
tailwind-merge
as I thought the issue might be there at first but it seems to be fineExpected behavior The
leading-*
class should be applied to the element