Skip to content
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

font sizes defined in px instead of rem #33488

Closed
jligeza opened this issue Dec 18, 2024 · 2 comments
Closed

font sizes defined in px instead of rem #33488

jligeza opened this issue Dec 18, 2024 · 2 comments

Comments

@jligeza
Copy link

jligeza commented Dec 18, 2024

Having font sizes for tokens/components defined in px instead of rem hurts accessibility, because it makes them unaffected by web browser global font size setting.

It would be better to have them and line heights converted to rem.

export const fontSizes: FontSizeTokens = {

@layershifter
Copy link
Member

layershifter commented Dec 19, 2024

That's the intentional decision to go with pixels over rem units.

I don't recall if there is a RFC about it, but it was discussed multiple times in offline and it was decided to use pixels for Fluent UI over other units.

@layershifter layershifter closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2024
@jligeza
Copy link
Author

jligeza commented Dec 21, 2024

That's the intentional decision to go with pixels over rem units.

I don't recall if there is a RFC about it, but it was discussed multiple times in offline and it was decided to use pixels for Fluent UI over other units.

I am curious why you decided not to go with rem, which is needed for optimal accessibility. Could you explain?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants