Generally implement *Typo* for each component in V5 #3794
Replies: 3 comments 1 reply
-
I don't think that's a good idea.
|
Beta Was this translation helpful? Give feedback.
-
Hi @dvoituron thank you for your response. I believe there might be a slight misunderstanding. My main concern is not about how the font size is technically applied (e.g., via Typo, Size, or CSS variables), but rather about having a unified, consistent way to control font sizes across all Fluent components through a single user setting. Right now, some components (like Fluent Text) expose Size, while others (like Accordion) don't reflect any global font size changes. This leads to inconsistent UI and forces developers to create multiple user settings just to manage font sizes across different components, which breaks accessibility and UX. My suggestion is simply: That would solve both developer and user experience issues in a clean and scalable way. Thanks again for considering this! |
Beta Was this translation helpful? Give feedback.
-
Excellent !!! Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
You can currently control the size of a label very easily via Typo. If you define your own setting variable here, you can enable the user to display all labels in a size that is ideal for them. This is an excellent method to enable accessibility:
<FluentLabel Typo="@UserMana.UserSettings.TypographyBody">Log out from the app</FluentLabel>
It would be great to have Typo on all components. A bad example is Accordion, because there the font sizes remain as they are, which is unattractive in the app when the labels change. In addition, you have to offer the user a second setting with which he can then also change these font sizes (for Accordion).
Another good thing would be to extend the typo values and, in addition to Body, H1...H6, possibly offer a few missing sizes as numbers (e.g. Size14, Size18 etc.).
Another possibility would be to offer a new component parameter, e.g. TypoSize, where you can pass an int for font size directly to the component.
pc
Beta Was this translation helpful? Give feedback.
All reactions