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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user