-
Notifications
You must be signed in to change notification settings - Fork 25
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
CollapsiblePanel: panel's content doesn't grow over the full container's width #2048
Comments
The panel's content is a Flex container: ui-kit/packages/components/collapsible-panel/src/collapsible-panel.styles.tsx Lines 86 to 92 in c2e53b7
The content's items (Flex items) are not growing over the container's width because the default value for I think it's reasonable to expect that the panel's content should grow over the full panel's width, which means that a potential fix for the bug is to start using the value |
Thanks for reporting. We'll take a look at this and see what we can do. |
In order to decide regarding the implementation, we'll check the usage of this component in the MC (both in the code and in the UI) |
Sorry for the late reply. That's already the workaround that we use (although by using the ui-kit As I expressed in #2048 (comment). I think it makes sense to expect that the panel's content should grow over the full panel's width. This will still work even for vertically stacked layouts. |
Thank you for your reply and sharing another solution. Again, please consider:
However, we will look upon adding an optional prop to |
Thanks, I think the issue is more about providing better defaults. I think the panel's content growing over its full width is a better default. With this default, having vertically stacked layouts is still possible as shown in https://codesandbox.io/s/commercetools-ui-kit-2048-5w86f6?file=/src/App.js. |
Many thanks again for your reply and providing the code sample. We will need more time for researching how the defaults would influence all the use cases |
Describe the bug
CollapsiblePanel's content doesn't grow over the full container's width.
To Reproduce
Steps to reproduce the behavior:
Check the following code:
Expected behavior
CollapsiblePanel's content should grow over the full container's width.
Screenshots
The text was updated successfully, but these errors were encountered: