Skip to content
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

Cleanup: Aligning hint, helper text and validation error based on padding #3086

Merged
merged 17 commits into from
Feb 19, 2023

Conversation

nicolaihenriksen
Copy link
Contributor

@nicolaihenriksen nicolaihenriksen commented Feb 14, 2023

This PR cleans up the styles utilizing the SmartHint because there are several scenarios where the helper text and validation error do not align properly when a non-default TextBox.Padding is set.

I updated the SmartHint demo app page to enable applying custom padding and toggling Validation.HasError on/off. This is a quick way to visually see if things are as you'd expect.

I wrote some UI tests to ensure the alignments are correct. Well almost, currently within accepted tolerance. Follow up PRs (see below) should hopefully remove this tolerance.

Fixed for the following controls:

  • TextBox
  • PasswordBox
  • RichTextBox
  • ComboBox
  • DatePicker
  • TimePicker

Removed the wrong usages of TextFieldAssist.TextBoxViewMargin in the templates above.

There are still some minor misalignments between the hint, helper text, validation text and the actual control text content that should be taken care of; this will come in other PRs.

SmartHintDemo

@Keboo Keboo added this to the 4.8.0 milestone Feb 17, 2023
@nicolaihenriksen nicolaihenriksen marked this pull request as ready for review February 17, 2023 21:45
@nicolaihenriksen nicolaihenriksen added the visual breaking change Items here have affected the visual look of controls. label Feb 17, 2023
@Keboo Keboo added the release notes Items are likely to be highlighted in the release notes. label Feb 19, 2023
@Keboo Keboo merged commit 557bb1b into MaterialDesignInXAML:master Feb 19, 2023
@nicolaihenriksen nicolaihenriksen deleted the cleanup branch February 21, 2023 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes Items are likely to be highlighted in the release notes. visual breaking change Items here have affected the visual look of controls.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants