-
-
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
Addon-docs: Preview component is not compatible with content that is hidden #8928
Comments
The same issue here! FIX: I override the overflow: hidden; prop of the .css-h1ypda class that correspond to the Preview component on the storybook ui component and set to visible I think to fix that we need to change the component styled prop from overflow: hidden; to overflow: visible; here i show the code that we have on the actually Preview component. I hope that helps to fix the problem! |
@matiasmenker it's unfortunately not that easy, when there is a second preview just under. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hi bot! I am still interested in a solution. |
I understand this is a concern but shouldn't the popable content have a higher z-index than the entire next component? Wouldn't you run on the same issue in your application? I would prefer for the preview overflown content to be visible than hidden, at least we would be able to fix the issue you are pointing out on a per-page basis. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
+1 I'd like to be able to tell the The issue I'm facing is the same as highlighted above, but for React-Select and Popper tooltips. I could override it in a crude way by writing this CSS: .sbdocs-preview, /* for the preview wrapper */
.sbdocs-preview > div > div { /* for another wrapper within the preview div */
overflow: visible;
} Basically the storybook/lib/components/src/blocks/Preview.tsx Lines 52 to 55 in 88381d8
storybook/lib/components/src/blocks/Preview.tsx Lines 20 to 25 in 88381d8
Maybe there should be a prop which can be passed to the |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
@kumarharsh if you have ideas about how to do that, I'd be open to PRs |
Okay, will look into it next week :) |
hey, any chance @kumarharsh you made progress on that? I'm facing same issues, any kind of absolutely positioned popover is broken inside the Prieview block :( |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
I hacked my way around this. Thought I'd share how. The third child deep off of
|
closing as dupe to #8011 |
Storybook obscures components that have hidden elements (think ContextMenu or DatePicker) when viewed with the Firefox browser. This made the docs section almost unusable in Firefox. The only solution at this time appears to be overiding some Storybook styles. storybookjs/storybook#16714 storybookjs/storybook#8928 Included a `ContextMenu` cypress test to help catch the issue with Storybook version bumps.
Storybook obscures components that have hidden elements (think ContextMenu or DatePicker) when viewed with the Firefox browser. This made the docs section almost unusable in Firefox. The only solution at this time appears to be overiding some Storybook styles. storybookjs/storybook#16714 storybookjs/storybook#8928 Included a `ContextMenu` cypress test to help catch the issue with Storybook version bumps.
Describe the bug
When a component shows content that is absolutely positioned, the content is hidden behind a scrollbar.
To Reproduce
Expected behavior
The content would show over the preview.
Screenshots
before clicking the date picker
clicked
What is expected
System:
Environment Info:
System:
OS: macOS Mojave 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Binaries:
Node: 12.7.0 - ~/.nvm/versions/node/v12.7.0/bin/node
Yarn: 1.19.1 - ~/Repos/sg-orbit/node_modules/.bin/yarn
npm: 6.10.0 - ~/.nvm/versions/node/v12.7.0/bin/npm
Browsers:
Chrome: 78.0.3904.108
Firefox: 69.0.1
Safari: 13.0.3
npmPackages:
@storybook/addon-actions: 5.3.0-beta.3 => 5.3.0-beta.3
@storybook/addon-console: 1.2.1 => 1.2.1
@storybook/addon-docs: 5.3.0-beta.3 => 5.3.0-beta.3
@storybook/addon-knobs: 5.3.0-beta.3 => 5.3.0-beta.3
@storybook/react: 5.3.0-beta.3 => 5.3.0-beta.3
The text was updated successfully, but these errors were encountered: