Skip to content

Commit

Permalink
fix: prevent focus zoom on mobile devices (#20)
Browse files Browse the repository at this point in the history
Set font-size to 16px for input, select, and
textarea elements on mobile screens to prevent
zooming when focused.
  • Loading branch information
satnaing authored Aug 24, 2024
1 parent aded608 commit a91e0aa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@
body > #root {
@apply h-svh;
}

/* Prevent focus zoom on mobile devices */
@media screen and (max-width: 767px) {
input,
select,
textarea {
font-size: 16px !important;
}
}
}

@layer utilities {
Expand Down

0 comments on commit a91e0aa

Please sign in to comment.