Skip to content

SSR Builds with color mode dependant elements change styling order for breakpoints #5624

@adhami3310

Description

@adhami3310
import reflex as rx


app = rx.App()


@app.add_page
def index():
    return rx.fragment(
        rx.box(
            rx.color_mode.button(),
            "Desktop",
            display=["none", "none", "none", "block"],
        ),
        rx.box(
            "Mobile",
            display=["block", "block", "block", "none"],
        ),
    )

rxconfig has to disable tailwind, otherwise it works, it also works with env=dev

This broke in #5608

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions