You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Stack item that is listed first in the source code does not have any spacing above it if its order is changed to be anything other than first in the stack. In the example A doesn't have spacing, but it should.
It's not just the first one that is messed up, it's also the one that ends up in first position. In the example B has spacing above it, but it shouldn't.
Expected behavior 🤔
The stack should apply spacing with respect to changes in order.
<Stackspacing={20}><Boxorder={3}>
A
</Box><Boxorder={1}>
B
</Box><Boxorder={2}>
C
</Box></Stack>
Context 🔦
This is the recommended solution for changing the order of items in a Stack as far as I can tell. It is recommended in this mui git issue and in this stack overflow, both of which came up near the top of my google searches.
oliviertassinari
changed the title
Changing order of first item in Stack breaks spacing
[Stack] Changing order of first item breaks spacing
Aug 21, 2022
Duplicates
Latest version
Current behavior 😯
The Stack item that is listed first in the source code does not have any spacing above it if its order is changed to be anything other than first in the stack. In the example A doesn't have spacing, but it should.
It's not just the first one that is messed up, it's also the one that ends up in first position. In the example B has spacing above it, but it shouldn't.
Expected behavior 🤔
The stack should apply spacing with respect to changes in order.
Steps to reproduce 🕹
Code Sandbox
Here is a minimal example:
Context 🔦
This is the recommended solution for changing the order of items in a Stack as far as I can tell. It is recommended in this mui git issue and in this stack overflow, both of which came up near the top of my google searches.
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: