Skip to content

Commit

Permalink
chore: Add a more precise comment about TextBox behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
eriklimakc committed May 27, 2024
1 parent 6b8beaa commit 2b7b445
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@
mc:Ignorable="d macos">

<!--
NOTE:
Expected TextBox behavior:
We are going a different route than the Official Material M2/M3 Google samples & the Material doc regarding the fact that the Placeholder will always be visible.
(cf. specs discussions here https://github.com/unoplatform/Uno.Themes/issues/974)
- Without Header/Placeholder, we will have a simple TextBox (matching Windows behavior)
- Without Header/Placeholder: Simple TextBox
- With a Placeholder and no Header, we will have a simple TextBox (matching Windows behavior).
- If there is a Header:
- Without a Placeholder, the Header moves up when focused and it will be empty underneath until some text is entered
- With a Placeholder, the Header does not move, it is already at the top and shows also the Placeholder underneath
- With placeholder but no header: The placeholder will be displayed where the text is supposed to be until text is inputed
- With header but no placeholder: The header will be displayed where the text is supposed to be and will move up when focused
- Whith header and placeholder: The header will be displayed at the top and the placeholder will be displayed where the text is supposed to be until text is inputed
-->

<!-- Converters -->
Expand Down

0 comments on commit 2b7b445

Please sign in to comment.