mantine
mantine copied to clipboard
Collapse inside Stack spacing regression in 7.17.7->7.17.8
Dependencies check up
- [x] I have verified that I use latest version of all @mantine/* packages
What version of @mantine/* packages do you have in package.json?
7.17.8
What package has an issue?
@mantine/core
What framework do you use?
Next.js
In which browsers you can reproduce the issue?
Chrome
Describe the bug
We have a collapse component inside of a stack. In 7.17.7, when collapsed it is display: 'none', when collapsed so there is no additional stack gap between the previous component in the stack and the hidden collapse. When expanded, the collapse content correctly has a gap between itself and the component above, since it is no longer display: 'none',.
In 7.17.8, the collapse is no longer display: 'none', when collapsed so there is now extra space at the bottom of the parent stack. I am pretty sure this was introduced in https://github.com/mantinedev/mantine/pull/7774.
Before:
After:
If possible, include a link to a codesandbox with a minimal reproduction
https://codesandbox.io/p/sandbox/mantine-react-template-forked-hc7kcc
Possible fix
Revert https://github.com/mantinedev/mantine/pull/7774 until this is addressed
Self-service
- [x] I would be willing to implement a fix for this issue