-
-
Notifications
You must be signed in to change notification settings - Fork 9.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
Centered addon: Invisible portions of overflowing components are inaccessible #1225
Comments
Do you see an opportunity to open a PR to fix this @su-narthur ? |
@ndelangen Absolutely, this would be better as a PR. I hesitated, since I didn't know how to test my fix. Go for it anyway? |
Go for it, I can help you test if you'd like. My schedule for tomorrow will only allow me to be available after 17:30 CEST though. |
Add CSS to allow for oversized components to scroll in all directions. See [issue storybookjs#1225](storybookjs#1225 (comment)).
@ndelangen Ok, I've created a PR. What's next? |
Thank you! I'll review and test it! 👍 |
Merged! |
overflow-x does not work. I am developing a case which I have a The inner div style |
@casvil I can confirm that I am still seeing this bug in storybook 5.x.x, did you happen to come up with a fix? |
When using the Centered addon, portions of a component which overflow the preview window are inaccessible.
Adding
overflow: scroll;
to the wrapper Centered creates allows for accessing the bottom inaccessible portion, but not the top inaccessible portion due to this issue with flexbox.Adding
margin: auto;
to an inner wrapper immediately inside the one Centered now creates seems to fix the issue without affecting the centering of components which completely fit. See this explanation of the fix and this demo.I blindly edited the addon's
src/index.js
file and came up with the following, though I'm new to the js development world and so didn't know how to compile it in order to test the fix:Can this fix be added to the addon?
The text was updated successfully, but these errors were encountered: