Skip to content

Commit fb3ca89

Browse files
authored
fix(ui): prevent iOS Safari auto-zoom on input focus (#7214)
1 parent d3d379f commit fb3ca89

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/ui/src/styles/base.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,3 +372,17 @@ input:where([type="button"], [type="reset"], [type="submit"]),
372372
[hidden]:where(:not([hidden="until-found"])) {
373373
display: none !important;
374374
}
375+
376+
/*
377+
Prevent iOS Safari from auto-zooming on input focus.
378+
iOS WebKit zooms on any input with font-size < 16px as an accessibility feature.
379+
*/
380+
381+
@media (hover: none) and (pointer: coarse) {
382+
input,
383+
select,
384+
textarea,
385+
[contenteditable="true"] {
386+
font-size: 16px !important;
387+
}
388+
}

0 commit comments

Comments
 (0)