Skip to content

Fixed MenuItem Header alignment wrt to Icons #10735

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

Merged

Conversation

dipeshmsft
Copy link
Member

@dipeshmsft dipeshmsft commented Apr 8, 2025

Fixes #9980

Description

In the current MenuItem Fluent styles, the Icon column didn't share width among the different MenuItems. Due to this, the Header content presenter gets misaligned.

Customer Impact

Improves usability and speeds up visual scanning of the UI

Regression

Technically no, but as compared to Aero2 styles this is a regression in Fluent styles.

Testing

Local app testing.

Risk

Minimal

Microsoft Reviewers: Open in CodeFlow

@Copilot Copilot AI review requested due to automatic review settings April 8, 2025 09:29
@dipeshmsft dipeshmsft requested review from a team as code owners April 8, 2025 09:29
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (4)
  • src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/MenuItem.xaml: Language not supported
  • src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Dark.xaml: Language not supported
  • src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.HC.xaml: Language not supported
  • src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Light.xaml: Language not supported

@dipeshmsft dipeshmsft requested a review from siagupta0202 April 8, 2025 09:29
@dotnet-policy-service dotnet-policy-service bot added the PR metadata: Label to tag PRs, to facilitate with triage label Apr 8, 2025
Copy link

codecov bot commented Apr 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 12.87183%. Comparing base (76a1d57) to head (92d6211).
Report is 11 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #10735         +/-   ##
===================================================
+ Coverage   11.26276%   12.87183%   +1.60906%     
===================================================
  Files           3315        3316          +1     
  Lines         665228      665321         +93     
  Branches       74668       74667          -1     
===================================================
+ Hits           74923       85639      +10716     
+ Misses        589002      577371      -11631     
- Partials        1303        2311       +1008     
Flag Coverage Δ
Debug 12.87183% <ø> (+1.60906%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dipeshmsft dipeshmsft modified the milestones: .NET 10, 10.0.0 Apr 8, 2025
@siagupta0202 siagupta0202 self-assigned this Apr 11, 2025
@siagupta0202
Copy link
Contributor

LGTM

@siagupta0202 siagupta0202 merged commit 1711c02 into dotnet:main Apr 13, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR metadata: Label to tag PRs, to facilitate with triage Win 11 Theming
Projects
Status: ☑ Done
Development

Successfully merging this pull request may close these issues.

Fluent Theme: MenuItem does not align Header
2 participants