Skip to content

Back navigation button styles seem to be reversed #8636

Open
@lesterbotello

Description

@lesterbotello

Describe the bug

Using the styles NavigationBackButtonNormalStyle and NavigationBackButtonSmallStyle in a button results in appearances that appear to be the opposite of what they're intended to do. Namely, the NavigationBackButtonNormalStyle results in a button that actually looks smaller than the NavigationBackButtonSmallStyle button (refer to the screenshot and the attached sample app for visual proof).

Steps to reproduce the bug

  1. Create a new Blank desktop app (Win UI)
  2. Add the following to the main page:
	<StackPanel HorizontalAlignment="Center"
				VerticalAlignment="Center">
		<TextBlock Text="Normal Button (NavigationBackButtonNormalStyle):" />
		<Button Style="{StaticResource NavigationBackButtonNormalStyle}" />
		<TextBlock Text="Small Button (NavigationBackButtonSmallStyle):" />
		<Button Style="{StaticResource NavigationBackButtonSmallStyle}" />
	</StackPanel>
  1. Run the app and observe the two buttons

Expected behavior

Buttons styled with NavigationBackButtonSmallStyle are actually smaller than the ones styled with NavigationBackButtonNormalStyle

Screenshots

image

NuGet package version

WinUI 3 - Windows App SDK 1.3.2: 1.3.230602002

Windows version

Windows 10 (21H2): Build 19044

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingteam-ControlsIssue for the Controls team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions