-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
em font size #303
Comments
Hi @dullbananas, can you be more descriptive, what is your motivation behind creating this issue? |
@pravdomil using |
have not heard about such a thing |
The
The font size of the The thing is, the
Also, I find
I think pretty much the only use case is if you are replacing one part of a bigger front-end which already extensively uses TL;DR - |
There's a good article here on why em/rem units matter. It's an accessibility issue. TL;DR: In general, 16px is the default font size in most web browsers, but a user may decide to change that in their OS and/or browser settings for accessibility reasons. Using px units for font-size means the user's preferences (and needs) won't be respected. Regarding the issue of It is possible to come up with a workaround for elm-ui based on code like this one to detect the user's font size, but I'd rather use the simpler and more robust option of specifying font sizes using If you want to see a couple of examples of websites that do this correctly, there's Wikipedia and MDN. Unfortunately, many popular websites don't respect the user agent's font-size. I don't think that's a good argument against supporting relative units. PS: I found out archive.org ran their own test and found out that 3% of their users used a non-default font size. |
Just like @madidier said, it's an accessibility issue. I know many older folk who use larger font-sizes so they can read what's on their phones. I think a way to use |
No description provided.
The text was updated successfully, but these errors were encountered: