Bug Fixes
- Fix numeric
auto-cols-*andauto-rows-*classes not merging with other values by @asssslay in #779 - Fix arbitrary values and CSS variables in
mask-linear-*andmask-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,rchandrcapunits not being recognized as lengths by @asssslay in #776 - Fix
translate-x-*,translate-y-*andtranslate-z-*not removing a precedingtranslate-noneby @Shahryartariq in #777 - Fix
translate-3dnot merging withtranslate-noneby @dcastil in #778 - Fix
contain-*classes not merging by @ErickGCA in #773contain-size,contain-inline-size,contain-layout,contain-paintandcontain-stylecombine with each other, sotwMerge('contain-size contain-layout')keeps both, whilecontain-none,contain-content,contain-strictand arbitrary values replace them.
- Fix
transform-content,transform-border,transform-fill,transform-strokeandtransform-viewnot merging by @ErickGCA in #772 - Fix
font-stretch-(--var)andfont-features-(--var)being treated as font family classes by @sagarrsharmaa in #766 - Fix
truncatenot overriding precedingoverflow-*,text-ellipsis,text-clipandwhitespace-*classes by @dibas-np in #765truncatesetsoverflow,text-overflowandwhite-spaceat once, so a latertruncatenow 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', becausetext-cliponly replaces the ellipsis and the text still gets truncated.truncatemoved from thetext-overflowclass group into its owntruncateclass group. Custom configs that referenced thetext-overflowgroup to reachtruncateneed to reference thetruncategroup 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! ❤️