Skip to content

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
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