Skip to content

hidden lg:block doesn't work but max-sm:hidden does #276

@vedantroy

Description

@vedantroy

Reproduction: https://github.com/vedantroy/nativewind-reproduction/blob/main/components/ScreenContent.tsx

Expected behavior
The word "Home" should render when hidden lg:block is used. right now only max-sm:hidden works.

Image

Additional context
I'm using custom breakpoints as seen in the tailwind.config.js file

I'm guessing the issue is that in nativewind, later (conflicting) styles don't override earlier ones or something like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions