Skip to content

Ring color conflicts with opacityΒ #602

@toppsdown

Description

@toppsdown

Describe the bug

I'm following tailwind's usage example for ring opacity. twMerge does not produce the correct classes.

Behavior

  • Code: twMerge(["ring-4 ring-red-500 ring-opacity-50"])
  • Expected output: "ring-4 ring-red-500 ring-opacity-50"
  • Actual Output: "ring-4 ring-opacity-50"

To Reproduce

Repro: https://codesandbox.io/p/sandbox/twmerge-ring-opacity-slxpkc

Environment

  • tailwind-merge version: 3.3.1

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