fix(ui): prevent iOS Safari auto-zoom on input focus (#7214)
This commit is contained in:
parent
d3d379fe2e
commit
fb3ca895d6
1 changed files with 14 additions and 0 deletions
|
|
@ -372,3 +372,17 @@ input:where([type="button"], [type="reset"], [type="submit"]),
|
||||||
[hidden]:where(:not([hidden="until-found"])) {
|
[hidden]:where(:not([hidden="until-found"])) {
|
||||||
display: none !important;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue