Re:Making the GOV.UK Front end typography scale more accessible
by tatersolid on Thursday December 15, 2022 @10:37AM
(#34001159)
Setting your root font size to 14px is the problem. Fix that. Use em/rem units and don’t override the user’s chosen font size.
[ Parent
| on HN ]
Re:Making the GOV.UK Front end typography scale more accessible
by jorgesborges on Thursday December 15, 2022 @10:49PM
(#34009855)
Yeah it was a janky setup. I think the root was 14px which was converted to rem and then multiplied by a scaleMultiplier depending on user settings.
As you pointed out the obvious solution was to increase the root size, but that would have significantly changed the UI for a lot of users… so I just targeted all form inputs for webkit only and set the default size in rem using !important to 16px.