-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
storybook 6: zoom buttons in docs do not work #12324
Comments
Works in chrome, appears to be broken in FF |
Here's the relevant code: storybook/lib/components/src/blocks/Preview.tsx Lines 63 to 66 in 3b58f16
|
It doesn't look like there is any support for zoom in firefox. https://caniuse.com/#feat=css-zoom I think it should be enough to replace it with a |
It will, but it will mean the scrollbar will scale as well. This is why |
The scrollbar of an iframe? Should not be the case when you apply scale only on the rendered component(s). Or maybe I missed something. |
Out of interest, I had a quick play around with this and the behaviour of Using zoom: { zoom = 1 }) => ({
'> *': {
zoom: 1 / zoom,
}, Using transform scale: ({ zoom = 1 }) => ({
'> *': {
transform: `scale(${1 / zoom})`,
},
}), It's possible that the functionality could be rewritten using |
That is probably because of how it is positioned and some transform-origin issue maybe. |
looks like a |
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 @ndelangen! I took another look at this issue and tried to replicate the behaviour of the CSS If you have some spare time please let me know if you think the solution would work and if you would like me to spend some more time testing/tweaking it to try to get a fix merged. |
@Tomastomaslol of course I do! https://calendly.com/ndelangen/storybook just pick a date & time 👍 |
ZOMG!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.0-rc.6 containing PR #12845 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Describe the bug
Clicking the zoom in / out buttons in the docs tab does nothing.
To Reproduce
Steps to reproduce the behavior:
npx sb init
http://localhost:6006/?path=/docs/example-button--primary
Expected behavior
The rendered component should be visible.
Screenshots
Code snippets
System:
Additional context
The text was updated successfully, but these errors were encountered: