-
Notifications
You must be signed in to change notification settings - Fork 32
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: Adding TextBox Icons Command and Visibility #997
Conversation
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net |
src/library/Uno.Material/Styles/Controls/v2/FloatingActionButton.xaml
Outdated
Show resolved
Hide resolved
src/library/Uno.Material/Converters/FromNullToFalseConverter.cs
Outdated
Show resolved
Hide resolved
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will need to create a new page in the docs for this too :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eriklimakc , @kazo0, @Xiaoy312 (cc @NVLudwig)
We have some padding inconsistency here
@NVLudwig if you can confirm, please
- We should have the same left padding with or without the leading icon
- For the right padding at the moment it is more prominent as the trailing icon was added in addition to the usual delete/clear button.
@NVLudwig do we have a case where we can have the clear icon in addition to another icon or it is just one trailing icon at a time ?
(cf. https://m3.material.io/components/text-fields/guidelines#5c8a5f07-b1a5-455f-bf76-7ff0d724f6b0)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are also relevant entry in the doc, that you should add/update as well: https://github.com/unoplatform/Uno.Themes/blob/master/doc/material-controls-extensions.md
(maybe after you have go through the comment first, as it will impact the doc)
@eriklimakc @agneszitte First of all, let it be known that "hell is a textbox", it looks deceptively simple but it really isin't AND it's really important to get it rock solid perfect, so thank you all for working so very hard on this one, I know how frustrating this can get. Here are a few ansers I hop help you along, contact me if more discussion is needed: 1a) Padding should the same before leading icon and after trailing icon One.padding.to.rule.all.textboxes.mov
|
@carldebilly / @Robert-Louis FYI we have breaking changes here. The TextBox won't be using the |
b89d153
to
fe2ad20
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net |
fe2ad20
to
0d4015e
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net |
@eriklimakc Icons should be the same color: OnSurfaceVariantColor |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net |
1 similar comment
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net |
To adjust:
|
@eriklimakc re: #997 (comment)
|
src/samples/UWP/Uno.Themes.Samples.Shared/Entities/Data/TestCommands.cs
Outdated
Show resolved
Hide resolved
src/samples/UWP/Uno.Themes.Samples.Shared/Entities/Data/TestCommands.cs
Outdated
Show resolved
Hide resolved
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net |
170bd0e
to
7c72ee3
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net |
GitHub Issue: #996
PR Type
What kind of change does this PR introduce?
Description
Added new DP in ControlExtensions:
LeadingIcon
IsLeadinIconVisible
LeadingCommand
TrailingIcon
IsTrailingIconVisible
TrailingCommand
PR Checklist
Please check if your PR fulfills the following requirements:
Other information
Internal Issue (If applicable):