-
-
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
[Bug]: Zoom in Safari is not working as expected #20888
Comments
I've labelled this as a good first contribution, because it's a pretty contained feature. |
Hello, Do you mind if I try to fix it? As It is my first time on this project, could you recommend any particular document or codes to focus on? |
@blacktoast Maybe in the next 2 weeks I will have time to try it as well, but please go ahead. So far I have found these two related files: storybook/code/ui/components/src/Zoom/browserSupportsCssZoom.ts Lines 1 to 10 in 78c3032
storybook/code/ui/components/src/Zoom/ZoomIFrame.tsx Lines 37 to 55 in 78c3032
I'm not sure how to change the test in |
I don't have any ideas either, other than adding an exception for Safari in |
@blacktoast that sounds like a good solution to me! I'd welcome a PR making that change! Please ping me, if you open a PR, I'll take a look ❤️ |
¡Ay Caramba!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-beta.50 containing PR #21069 that references this issue. Upgrade today to the
|
Describe the bug
The CSS
zoom
is not working correctly in Safari if rem values are used. See a minimal reproduction here:https://codepen.io/spielboerg/pen/GRBPRRE
Here is the comparison between Safari & Google Chrome:
I have already filed a bug report with Apple about this. Until this bug is fixed, it might be better if the zoom was done with
transform: scale()
like for Firefox.To Reproduce
1rem
System
Additional context
No response
The text was updated successfully, but these errors were encountered: