Repository navigation
·
16 commits
to refs/heads/main
since this release
Bug Fixes
- Fix font sizes without a line-height modifier removing earlier
leading-*classes by @dcastil in #761- In Tailwind CSS v4, an earlier
leading-*class still applies after a font size liketext-lgortext-[1.5rem], sotwMerge('leading-6 text-lg')now keeps both classes. Font sizes with a line-height modifier liketext-lg/7still overrideleading-*. - Thanks to @chatman-media for finding this for arbitrary font sizes in #681.
- In Tailwind CSS v4, an earlier
- Fix arbitrary values using
--spacing()being classified as colors instead of lengths by @dcastil in #758 - Fix
mask-circleandmask-ellipsenot merging by @0z5a in #756 - Fix
flex-(--var)not merging with other flex classes by @asssslay in #751 - Fix
decoration-(--var)being classified as thickness instead of color by @asssslay in #753 - Fix arbitrary
line-clampvalues likeline-clamp-[calc(var(--characters)/100)]not merging by @asssslay in #752 - Fix
place-*classes not overridingcontent-*,items-*,self-*andjustify-*classes by @mkantautas in #731 - Fix lengths using the
Qunit not being recognized by @Marve10s in #727 - Fix brackets and other delimiters inside quoted arbitrary values like
data-[label='[']breaking class parsing by @Don-Yin in #730 - Fix arbitrary values using
contrast-color()ordevice-cmyk()being classified as lengths instead of colors by @Don-Yin in #729 - Fix
sr-onlynot overriding the position, size, spacing, overflow and white-space classes it resets by @kory-kaai in #726 - Fix
mask-x-*andmask-y-*not overriding the matching edge classes and arbitrary mask stop positions being classified as colors by @Nelmad in #748- This also fixes arbitrary values using
--alpha()or uppercase color functions likeRGB()being classified as lengths instead of colors.
- This also fixes arbitrary values using
- Fix postfix modifiers not being recognized on classes with a leading important modifier like
!text-lg/7by @beduldul in #721
Documentation
- Explain how classes are matched to class groups and how to use validators by @itsthilinar in #750
- Show how to enforce importing
twMergefrom one place with ESLint by @oyobbeb in #738 - Recommend importing
twMergefrom one project-owned file by @dcastil in b53ceaf and 7fcb814
Full Changelog: v3.7.0...v3.7.1
Thanks to @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, a private sponsor, @block, @openclaw, @sourcegraph, @jbisasky, @FrontendMasters and more via @thnxdev for sponsoring tailwind-merge! ❤️