github dcastil/tailwind-merge tailwind-merge@3.7.3

50 minutes ago

Bug Fixes

  • Fix numeric auto-cols-* and auto-rows-* classes not merging with other values by @asssslay in #779
  • Fix arbitrary values and CSS variables in mask-linear-* and mask-conic-* not merging with numeric angles by @asssslay in #775
  • Fix arbitrary values and CSS variables in mask-radial-at-* not merging with named positions by @asssslay in #774
  • Fix arbitrary values with the ic, ric, rex, rch and rcap units not being recognized as lengths by @asssslay in #776
  • Fix translate-x-*, translate-y-* and translate-z-* not removing a preceding translate-none by @Shahryartariq in #777
  • Fix translate-3d not merging with translate-none by @dcastil in #778
  • Fix contain-* classes not merging by @ErickGCA in #773
    • contain-size, contain-inline-size, contain-layout, contain-paint and contain-style combine with each other, so twMerge('contain-size contain-layout') keeps both, while contain-none, contain-content, contain-strict and arbitrary values replace them.
  • Fix transform-content, transform-border, transform-fill, transform-stroke and transform-view not merging by @ErickGCA in #772
  • Fix font-stretch-(--var) and font-features-(--var) being treated as font family classes by @sagarrsharmaa in #766
  • Fix truncate not overriding preceding overflow-*, text-ellipsis, text-clip and whitespace-* classes by @dibas-np in #765
    • truncate sets overflow, text-overflow and white-space at once, so a later truncate now removes earlier classes for those properties: twMerge('overflow-visible truncate') returns 'truncate'.
    • twMerge('truncate text-clip') now keeps both classes instead of returning 'text-clip', because text-clip only replaces the ellipsis and the text still gets truncated.
    • truncate moved from the text-overflow class group into its own truncate class group. Custom configs that referenced the text-overflow group to reach truncate need to reference the truncate group as well.

Full Changelog: tailwind-merge@3.7.2...tailwind-merge@3.7.3

Thanks to @manavm1990, @roboflow, @syntaxfm, @getsentry, @codecov, @block, @openclaw, @sourcegraph, @jbisasky, @FrontendMasters and more via @thnxdev for sponsoring tailwind-merge! ❤️

Don't miss a new tailwind-merge release

NewReleases is sending notifications on new releases.