From 11017b20f84460acb156467adbf69983db5b2fb9 Mon Sep 17 00:00:00 2001 From: chapoi <101828855+chapoi@users.noreply.github.com> Date: Fri, 18 Oct 2024 05:26:12 +0200 Subject: [PATCH] UX: ensure ios font size is always min 16px with max() fn (#29270) --- app/assets/stylesheets/common/font-variables.scss | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/stylesheets/common/font-variables.scss b/app/assets/stylesheets/common/font-variables.scss index 764f0b55cbc..ed4b9cca6dc 100644 --- a/app/assets/stylesheets/common/font-variables.scss +++ b/app/assets/stylesheets/common/font-variables.scss @@ -29,8 +29,7 @@ --font-down-2-rem: 0.7579rem; // inputs/textareas in iOS need to be at least 16px to avoid triggering zoom on focus - // with base at 15px, the below gives 16.05px - --font-size-ios-input: 1.07em; + --font-size-ios-input: max(1em, 16px); // Common line-heights --line-height-small: 1;