Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

🐛 Next.js: Responsive props are not working properly #970

@alexasselin008

Description

Describe the bug

When using Orbit in a Next.js App, using a responsive prop throws a warning

Steps to reproduce

import { Flex } from "@sharegate/orbit-ui";

export function MyView() {
    return (
        <Flex minHeight="100vh" marginTop={13} backgroundColor={{ base:"blue", sm:"red" }}>

        </Flex>
    );
}

Open console, and observe the following error :

next-dev.js?3515:25 Warning: Prop `style` did not match. Server: "min-height:100vh;margin-top:var(--o-ui-sp-13);background-color:blue;display:flex;flex-direction:row" Client: "min-height:100vh;margin-top:var(--o-ui-sp-13);background-color:red;display:flex;flex-direction:row"

Visual result:
The property background color is blue, but it should be red.

Expected results

No warning and a red background

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions