diff options
| author | Andrew Thal <[email protected]> | 2026-01-07 09:22:48 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-07 09:22:48 -0600 |
| commit | fb3ca895d68c26a8d33775e815da12f9eb842e8b (patch) | |
| tree | 44a0f93e896bfee3794015ada239b4285c42b67f /packages/ui | |
| parent | d3d379fe2eee9aea141c12409535f8788c681e0a (diff) | |
| download | opencode-fb3ca895d68c26a8d33775e815da12f9eb842e8b.tar.gz opencode-fb3ca895d68c26a8d33775e815da12f9eb842e8b.zip | |
fix(ui): prevent iOS Safari auto-zoom on input focus (#7214)
Diffstat (limited to 'packages/ui')
| -rw-r--r-- | packages/ui/src/styles/base.css | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/ui/src/styles/base.css b/packages/ui/src/styles/base.css index b80398e1d..729ff045a 100644 --- a/packages/ui/src/styles/base.css +++ b/packages/ui/src/styles/base.css @@ -372,3 +372,17 @@ input:where([type="button"], [type="reset"], [type="submit"]), [hidden]:where(:not([hidden="until-found"])) { display: none !important; } + +/* + Prevent iOS Safari from auto-zooming on input focus. + iOS WebKit zooms on any input with font-size < 16px as an accessibility feature. +*/ + +@media (hover: none) and (pointer: coarse) { + input, + select, + textarea, + [contenteditable="true"] { + font-size: 16px !important; + } +} |
