Skip to content

[pigment-css][Grid] Spacing isn't working as expected #44042

@Mike-Ro

Description

@Mike-Ro

Steps to reproduce

Hi everyone!

I’m following the documentation here: https://mui.com/material-ui/migration/migrating-to-pigment-css/#migrating-layout-components, and I’ve written this code:

// src/app/page.js
import Grid from '@mui/material-pigment-css/Grid';

export default function page() {
  return (
    <Grid container spacing={2}>
      <Grid>1</Grid>
      <Grid>2</Grid>
    </Grid>
  );
}

The spacing is being converted to 2px. Is that how it’s supposed to work?

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

Libs:

"@mui/icons-material": "^6.1.2",
"@mui/material": "^6.1.2",
"@mui/material-pigment-css": "^6.1.2",
"@mui/system": "^6.1.2",
"@pigment-css/nextjs-plugin": "^0.0.24",

Search keywords: pigmentcss

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions