Uno.Themes
Uno.Themes copied to clipboard
[All][TextBox] Placeholder Text not Vertically Centered
Current behavior
When using a TextBox
with MaterialOutlineTextBoxStyle
the placeholder text is not vertically centered.
Expected behavior
When using a TextBox
with MaterialOutlineTextBoxStyle
the placeholder text should be vertically centered.
How to reproduce it (as minimally and precisely as possible)
- Download MyApp.zip
- Open solution
- Start project
- Notice Placeholder Text in the TextBox is not vertically centered
Environment
Nuget Package:
- Uno.WinUI
- Uno.Material.WinUI
Package Version(s):
- 4.5.0-dev.802
- 2.3.0-dev.12
Affected platform(s):
- [x] iOS
- [x] Android
- [ ] ~~WebAssembly~~
- [ ] ~~UWP~~
- [x] WinUI
- [ ] ~~MacOS~~
Anything else we need to know?
Not fixed in 2.3.0-dev.20
Syncing with @Soap-141 at the moment to make sure of the nuget package version and the sample app he used for his tests
So after syncing with @Soap-141 regarding the vertical alignment issue for the TextBox, Thomas did a sample app but there were no font files added to the sample so it was using the default font.
Uno.Themes for Material is using Roboto font and the project is using EncodeSansCondensed font.
So I'm trying to make sure placeholder and editable text are properly vertically aligned in the style regarding what font is used at the end
@jeromelaban, @kazo0 with all of the changes for the fonts lately I'm not sure if this issue is still relevant What should we do next for this one?
should be covered within #974
@jhanvi03 I will let you verify the Material TextBox (that you can test with Gallery Canary) to see if we still have some vertical alignment issues please. If so please leave more details for the impacted platforms. If not we can close this issue.
Text seems to be align on iOS, Android and WinUI.
I have opened another issue for Icon not align with the text https://github.com/unoplatform/Uno.Themes/issues/1443
Text seems to be align on iOS, Android and WinUI.
I have opened another issue for Icon not align with the text #1443
Thanks @jhanvi03! I am closing this issue then, and we will use https://github.com/unoplatform/Uno.Themes/issues/1443 to track the alignment issue when there is an icon.