Skip to content

Tailwind colormix issue #5286

@schillerenrico

Description

@schillerenrico

Package

v4.x

Description

I currently have a strange behavior with color-mix. Looking at nuxt ui docs the UDropDown with error colored options has the following css

@supports (color:color-mix(in lab,red,red)) {
    .data-highlighted\:before\:bg-error\/10[data-highlighted]:before {
        background-color: 
 color-mix(in oklab, var(--ui-error) 10%, transparent);
    }
}

But this css is not generated properly in my project. Its just the full red background-color.

.data-highlighted\:before\:bg-error\/10 {
    &[data-highlighted] {
        &::before {
            content: var(--tw-content);
            background-color: var(--ui-error);
        }
    }
}

It was working before but I dont know what update brokes it.
Is it possible to add the dynamic 10% opacity to the &[data-highlighted ?
So its not looking like that while hovering?

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions