day8 / re-com

A ClojureScript library of reusable components for Reagent
https://re-com.day8.com.au
MIT License
796 stars 147 forks source link

Base font size #297

Open rmschindler opened 2 years ago

rmschindler commented 2 years ago

Pardon me if this does not classify as an "issue." I am having a problem involving mobile browsers, which "auto zoom" any text input element, eg, when its font size is less than 16. Once the user has entered the input, the page remains zoomed (at least on iPhone).

So I am interested in how to make the base size 16px, not 14px as it currently is (and seems rather hardcoded to be). Is this possible at all? I suspect that a lot of things depend on that 14px font size set in the body, and all font sizes are hardcoded relative to the assumption that the body's font size is 14px, amiright?

Is there a way to set another base font size (ie in the body) and have all other elements adapt accordingly? Or am I way off my gourd here in terms of what's currently possible with re-com?