Skip to content

[Material] PasswordBox and TextBox lightweight styles work inconsistently and PasswordBox does not align attached icon correctly #1599

@mikernet

Description

@mikernet

Current behavior

This:

<Thickness x:Key="OutlinedTextBoxPadding">3</Thickness>
<Thickness x:Key="OutlinedPasswordBoxPadding">3</Thickness>

<x:Double x:Key="OutlinedTextBoxMinHeight">30</x:Double>
<x:Double x:Key="OutlinedPasswordBoxMinHeight">30</x:Double>

When the boxes have icons attached, results in:

Image

As you can see, the icon in the PasswordBox is not aligning centered vertically and the heights are not the same.

Without an icon, this results in:

Image

Expected behavior

PasswordBox and TextBox should have aligned styling behavior and PasswordBox should vertically center the icon the same way TextBox does.

Package Version(s): SDK 6.5.0-dev.100

Affected platform(s):

All

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions