You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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?
Having font sizes for tokens/components defined in
px
instead ofrem
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
.fluentui/packages/tokens/src/global/fonts.ts
Line 3 in b59061d
The text was updated successfully, but these errors were encountered: