Consider a11y impact and/or competitor analysis for preventing browser zoom
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3475838. -->
Reported by: [jessebaker](https://www.drupal.org/user/3546546)
>>>
<h3 id="overview">Overview</h3>
<p>Over in <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/experience_builder/issues/3469673" title="Status: Closed (fixed)">#3469673: Keyboard commands to zoom in and out should only impact the preview canvas</a></span> @lauriii proposed that we <em>prevent</em> the user from zooming with the keyboard shortcuts <code>cmd +</code> and <code>cmd -</code>. This issue is to facilitate some discussion/research/UX consideration/competitor analysis around that proposal.</p>
<p>I suggest reading through the discussion on that issue before embarking on this.</p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<p>So there are many facets to this topic and I think some research, some careful consideration and a discussion culminating in a decent write up would allow us to make a good move forward.</p>
<p>What do competing page builders do? How does Figma work for example?<br>
Disabling the keyboard shortcuts stops only one avenue of a user zooming (View->Zoom In from the Chrome menu would still work for example) so the UI needs to support zooming anyway.<br>
My hunch is that a11y requires that we should allow a user to zoom <em>the UI</em> but it's not my area of expertise.<br>
On macOS using the pinch zoom gesture on a trackpad offers a OS level zoom behaviour that is different from the browser zoom behaviour. This is not great for our use case and actually causes a bug described in <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-17"><a href="https://www.drupal.org/project/experience_builder/issues/3475749" title="Status: Closed (outdated)">#3475749: Pinch gesture zooming sometimes invokes OS zoom behavior</a></span>. </p>
> Related issue: [Issue #3469673](https://www.drupal.org/node/3469673)
issue