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

Back navigation button styles seem to be reversed #8636

Open
lesterbotello opened this issue Jul 12, 2023 · 0 comments
Open

Back navigation button styles seem to be reversed #8636

lesterbotello opened this issue Jul 12, 2023 · 0 comments
Labels
bug Something isn't working team-Controls Issue for the Controls team

Comments

@lesterbotello
Copy link

lesterbotello commented Jul 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

2 participants