Skip to content
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

Eliminate iOS input zooming #89

Open
brettinternet opened this issue Oct 25, 2022 · 0 comments
Open

Eliminate iOS input zooming #89

brettinternet opened this issue Oct 25, 2022 · 0 comments

Comments

@brettinternet
Copy link

TL;DR: If mobile font-sizes in text inputs are at least 16px, browsers on iOS devices won't zoom into the element when the user selects the input.


Is your feature request related to a problem? Please describe.
Selecting (or "focusing" on) the search input on iOS devices makes the browser zoom into the element.

Describe the solution you'd like
Change the fontsize of the input to a value >= 16px.

Since the search input's fontsize is 1rem, I suppose you could also change the body element's fontsize to 16px for the same result.

While I'm here, you may also consider setting border-radius to 0 since some browsers add default styles to the input, or -webkit-appearance: none; might do the trick.

Describe alternatives you've considered
None

Additional context
Submitting this as a feature rather than a bug because it's a rather annoying nuance with iOS devices.

For more context, here's a similar submission I made to Meta StackOverflow: https://meta.stackoverflow.com/q/389464/6817437

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant