You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason why the leading-1.25 class gets removed is because text-14 sets a line-height CSS property, overriding line-height classes if you place it afterwards. If you want to change this overriding behavior and don't use line-heights in your font-size classes, you can override the conflict between the font-size and line-height classes:
import{extendTailwindMerge}from'tailwind-merge'consttwMerge=extendTailwindMerge({override: {conflictingClassGroups: {// In the default config the value is ['leading']// See https://github.com/dcastil/tailwind-merge/blob/v2.5.4/src/lib/default-config.ts#L1786'font-size': []}},// … rest of your config})
Describe the bug
To Reproduce
results in this:
block bg-white text-gray1 border-gray4 placeholder-opacity-50 rounded-5 outline-none text-14 w-100 border-0
Expected behavior
block bg-white text-gray1 leading-1.25 border-gray4 placeholder-opacity-50 rounded-5 outline-none text-14 w-100 border-0
The text was updated successfully, but these errors were encountered: