-
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
feat: Introducing Header and Placeholder #1014
Conversation
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-1014.eastus2.azurestaticapps.net |
1 similar comment
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-1014.eastus2.azurestaticapps.net |
Thanks @agneszitte, will fix it |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-1014.eastus2.azurestaticapps.net |
I'm having a problem with the TextBox cursor: When I have Placeholder and Header the But when I have only Header the cursor should start with the position 0, which means it would be aligned with the Header text and when I type something it would go down (position 8). But When I type: I can't find a way of check Text, PlaceholderText and Header at the same time to manipulate the cursor position as desired. Do you guys have any ideas? I have pushed my changes. |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-1014.eastus2.azurestaticapps.net |
@eriklimakc I will pull your branch to take a look and help you fix this issue |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-1014.eastus2.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-1014.eastus2.azurestaticapps.net |
@eriklimakc I have pushed on your branch a commit to fix the MaterialFilledTextBoxStyle so it can follow the proper specs we agreed on for the related issue. Here some things to note:
(cc @kazo0) |
As an additional note, the converter is working fine on Windows but for the other platforms, the converter is only trigged once for each state. It seems like once it is triggered it won't trigger anymore for that state. |
Related Issue for the Converter/VisualStates issue: |
88351a1
to
2b35be8
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-1014.eastus2.azurestaticapps.net |
2 similar comments
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-1014.eastus2.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-1014.eastus2.azurestaticapps.net |
Regarding animations all seems to be working fine after unoplatform/uno#12556. Only getting this behavior on non-windows platforms: When TextBox is pressed and Placeholder/Text + Header is present they get back to the center and then animates to their right position: TextBox.PnH.issue.mp4 |
@eriklimakc what's the current status of this? Any remaining blockers? |
@kazo0, there is only this behavior on non-windows platforms that I mentioned above with the video. |
7daf3cd
to
7c22d38
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-1014.eastus2.azurestaticapps.net |
Skia X WinApparently when the animation code is executed, the Text, Header, and Placeholder are quickly set to their default state and after that they are animated. In order to test I replaced the animation code for
|
@eriklimakc re: #1014 (comment) |
… platforms need to be properly tested and namings adjusted)
2b7b445
to
2186f37
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-1014.eastus2.azurestaticapps.net |
src/samples/UWP/Uno.Themes.Samples.Shared/Content/Controls/TextBoxSamplePage.xaml
Outdated
Show resolved
Hide resolved
c9d6ae0
to
02e3d43
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-1014.eastus2.azurestaticapps.net |
02e3d43
to
28f802c
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-1014.eastus2.azurestaticapps.net |
GitHub Issue: #974 #842
PR Type
What kind of change does this PR introduce?
Description
Introducing Header as Label and Placeholder to TextBox.
The former PlaceholderText was replaced by Header and a new Placeholder was added. The goal is to reproduce the Material 3 Textbox behavior.
PR Checklist
Please check if your PR fulfills the following requirements: