Skip to content

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

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

    deferred (post-5.0)Not required for the 5.0 latest release; revisit after

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions