-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Accessibility issue: cannot zoom with ctrl+plus #636
Comments
For supporting various screen size in the full-screen presentation, HTML slide generated by Marp CLI has fit slides to the viewport size. In common, the zoom feature of the desktop browser by Ctrl++ / Ctrl+- will zoom the HTML content, but will not zoom the size of actually visible viewport. And there is not a stable way to get the current zoom level of the desktop browser, so unfortunately scaling the slide along with the browser zoom is difficult. Workarounds
Currently I have no better idea to scale along with the browser zoom level correctly, but we welcome any idea to achieve that. |
One idea I've tried (still not perfect, but maybe it works for someone else) is to set a specific width and height to the svg, eg.: body > svg {
width: 11in;
height: 8.5in;
} That plays well with desktop browser zoom, but looks less nice on mobile, but could be creatively toggled on and off I guess just while developing content before presentation. |
Do you think is the slide scale switch useful, provided by the presenter interface like Slidev? If set it to https://poc-marp-slidev.netlify.app/ |
Oh? That is an interesting solution for sure I ended up creating a similar toggle for our case, with it defaulting to Fit if it detected touch (eg., mobile) where pinch-zoom would be preferred, and 1:1 otherwise (eg. desktop) where browser-zoom would be preferred. |
The svg containers for Marp slides are set to 100% viewport width and height. When one of my collaborators, who is legally blind with low vision, tries to zoom in on her desktop computer using ctrl+plus as she normally does for websites, the Marp slides do not change size, because they rescale to the new viewport size. In effect, Marp disables zoom.
(In our case, I can let her borrow my touchpad so she can pinch-zoom, which fixes the issue in our case, but not the general accessibility case)
The text was updated successfully, but these errors were encountered: