Skip to content

leading classes are getting removed if applied in the middle #573

@ubaid-myalfred

Description

@ubaid-myalfred

Describe the bug

Tailwind merge remove the leading classes if it is applied in the middle of the class. It is only working if I apply it on the end.

To Reproduce

Not working
className='text-[1.5rem]! leading-[1.75rem]! md:text-2xl lg:text-[1.625rem] xl:leading-[2.188rem]! xl:text-3xl! max-w-3xl! text-primary-headingDark80!'

Working
className='text-[1.5rem]! leading-[1.75rem]! md:text-2xl lg:text-[1.625rem] xl:text-3xl! max-w-3xl! text-primary-headingDark80! xl:leading-[2.188rem]!'

Expected behavior

Leading class should be applied but it keeps getting removed

Environment

Tailwindcss v4.1.4
tailwind merge v3.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    context-v3Related to tailwind-merge v3

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions