Skip to content

Tailwind css dark mode classes not picked up when passed as props. #277

Open
@federicomarcantognini

Description

@federicomarcantognini

It looks as Tailwind CSS dark mode styles cannot do anything when passed as props. For instance:

<MultiSelect 
        id="..."
        closeDropdownOnSelect = 'true'
        outerDivClass = "!dark:bg-gray-800 !bg-gray-100"
>
...
</MultiSelect>

the dark: does not affect the component CSS style. Also, each Tailwind CSS style passed as props needs to be !important otherwise no effect.

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstyleAnything CSS related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions