Search / Input mobile zoom

Problem description

The mobile Safari browser on iOS devices zooms into the page when an input field such as search field is clicked. This is not a bug but a feature of the Apple Browser. If the font size in the input field is smaller than 16px mobile Safari tries to optimize readability in the field by zooming in on the page.

It is annoying, however, that when you leave the input field, the browser does not automatically zoom out again.

Explanation

The problem has already been dealt with on Stackoverflow and is not a Shopware-specific problem.

This was already criticized in Shopware's issue tracker under Shopware 5: https://issues.shopware.com/issues/SW-24520

The behavior can also be observed in the default Shopware 6 theme:

Solution

As it stands, there is no general solution for this behavior. Considerations to completely lock the zoom function of the page would entail other usability issues.

Probably the easiest solution is to set the input fields with a minimum font size of 16px. In the theme configuration under Elements > Forms > Basic Settings in the font-size (1) field you can set this to 16px.

Last updated