You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mobile browsers on iOS devices "zoom" in on focused input elements when form elements are less 16px font-size.
For additional context, I provided a similar request to StackOverflow in a meta conversation. There are two possible solutions to this issue that I'm aware of:
(a) Give inputs font-size of 16 pixels
If mobile font-sizes in text inputs and text areas are at least 16px, browsers on iOS devices won't zoom into the element when the user selects the input.
Because the necolas/normalize CSS stylsheet adds font-size: 100% to all inputs, the input font size uses the body's which is 14px with the Tachyon class f6. The solution likely won't require removing the f6 class. Something likely this in main.css and popup.css would probably work.
Unless you can think of any other selectors that should also be included.
(b) User scalable "hack"
A less common and disadvantaged solution, is one that Maciej employs on Pinboard's mobile site. He disables user-scalable viewport option within the viewport meta tag:
Unfortunately, using this method is an accessibility issue for users that might need to zoom. It's more practical for a site with a map. We could opt for this solution if you felt strongly in favor of the frontend's small font-size.
If you're open to it, I'd be happy to perform a PR.
The text was updated successfully, but these errors were encountered:
Mobile browsers on iOS devices "zoom" in on focused input elements when form elements are less 16px font-size.
For additional context, I provided a similar request to StackOverflow in a meta conversation. There are two possible solutions to this issue that I'm aware of:
(a) Give inputs font-size of 16 pixels
If mobile font-sizes in text inputs and text areas are at least 16px, browsers on iOS devices won't zoom into the element when the user selects the input.
Because the necolas/normalize CSS stylsheet adds
font-size: 100%
to all inputs, the input font size uses the body's which is 14px with the Tachyon classf6
. The solution likely won't require removing thef6
class. Something likely this inmain.css
andpopup.css
would probably work.Unless you can think of any other selectors that should also be included.
(b) User scalable "hack"
A less common and disadvantaged solution, is one that Maciej employs on Pinboard's mobile site. He disables
user-scalable
viewport option within the viewport meta tag:Unfortunately, using this method is an accessibility issue for users that might need to zoom. It's more practical for a site with a map. We could opt for this solution if you felt strongly in favor of the frontend's small font-size.
If you're open to it, I'd be happy to perform a PR.
The text was updated successfully, but these errors were encountered: