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

Keep the Button HorizontalAlignment be Center in Fluent style #10082

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lindexi
Copy link
Member

@lindexi lindexi commented Nov 17, 2024

Fixes #10077

Description

In the Fluent style, ensure that the HorizontalAlignment property of buttons is set to Center. This helps maintain consistent behavior with previous styles.

Customer Impact

Maintaining consistent behavior allows developers to more easily apply the Fluent theme without worrying about layout changes due to style switches.

Regression

See #8870

Testing

Just CI and Snoop

Risk

Low. This potentially breaking scenarios where buttons relying on the Fluent style are left-aligned. Therefore, I believe the sooner this change is merged, the lower the risk will be, as fewer developers will depend on buttons being left-aligned.

Microsoft Reviewers: Open in CodeFlow

@lindexi lindexi requested review from a team as code owners November 17, 2024 02:08
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels Nov 17, 2024
@h3xds1nz
Copy link
Contributor

@lindexi Run the theme generator (ThemeGenerator.Fluent.ps1) so it is propagated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage Win 11 Theming
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Setting ThemeMode on a window causes a button to be positioned differently
2 participants