fix: prevent iOS auto-zoom on input focus by overriding Tailwind text-sm

Move the 16px font-size rule outside @layer base and scope it to iOS
via @supports (-webkit-touch-callout: none) so it takes priority over
Tailwind utility classes without affecting desktop rendering.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-15 21:32:54 +01:00
parent b2664cce08
commit 701a02b55c

View File

@@ -118,11 +118,14 @@ body.no-pinch-zoom * {
font-family: var(--font-ui);
}
/* Empêche le zoom automatique iOS sur les inputs */
}
/* Empêche le zoom automatique iOS sur les inputs (hors @layer pour surcharger text-sm) */
@supports (-webkit-touch-callout: none) {
input,
textarea,
select {
font-size: 16px;
font-size: 16px !important;
}
}