-
Notifications
You must be signed in to change notification settings - Fork 33
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
TextBox and PasswordBox Font styles are incorrect #1379
Comments
I believe they are already using BodyLarge typography values: Uno.Themes/src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml Lines 82 to 89 in aab5b0d
https://platform.uno/docs/articles/external/uno.themes/doc/styles/TextBox.html
https://platform.uno/docs/articles/external/uno.themes/doc/styles/PasswordBox.html |
hmmm...something is wrong: in Figma if I override the fontFamily for |
This is the problem I was mentioning before where we have intermediary aliases for the typography resources for some controls so overriding the origin resource won't affect aliases of that resource so we need to be referencing them directly |
@kazo0, the override is working correctly... it's just not connect to the right resource. Right now, in Figma, the FontFamily used for the TextBox is That means the Material TextBox is wrongly connected to the |
Not sure I'm understanding, If I override the |
Ooohh @kazo0 is right! We were confusing the So that's ok, it works :-) But it looks like some variants in Figma are not using the right text style for labels. |
Ahh, I see. Yeah because technically the "Label" when the field is empty is the header label just scaled up/down. Once this PR is finally unblocked, we can address this and use the proper font typography resource for the header/placeholder separately. |
Temporary solution:
|
Current behavior
TextBox and PasswordBox currently use
BodyMedium
ressource. This causes font overrides to fail as the Figma file uses BodyLarge in line with current Material specsExpected behavior
TextBox and PasswordBox should use
BodyLarge
ressourceHow to reproduce it (as minimally and precisely as possible)
Try and apply a font override by selecting and editing the font style for a TextBox or PasswordBox
Environment
Nuget Package:
Package Version(s):
Affected platform(s):
Anything else we need to know?
All text input controls probably have this issue AutoSuggest etc
The text was updated successfully, but these errors were encountered: