-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pigment-css][Grid] Spacing isn't working as expected #44042
Comments
Hey @Mike-Ro, thanks for the report. I can confirm this is a bug. We'll be working on it. |
Hey @Mike-Ro, sorry for the delay. May I ask you to share your |
I've retested, and the Grid is working as expected. I added a test to cover this: #44132 It won't work if a function is provided to the theme's spacing. This is because, after #43389, when spacing is a function, the spacing CSS variables are not generated, which is the Grid's (and Stack's) implementation. In this case, the spacing value will be used directly ( |
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. |
@DiegoAndai yes, thanks! |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @Mike-Ro How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
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:
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:
Search keywords: pigmentcss
The text was updated successfully, but these errors were encountered: