Fix issue 14089: Disabled menu items incorrectly display highlighted text in dark mode with System renderer#14248
Open
SimonZhao888 wants to merge 1 commit intodotnet:mainfrom
Open
Fix issue 14089: Disabled menu items incorrectly display highlighted text in dark mode with System renderer#14248SimonZhao888 wants to merge 1 commit intodotnet:mainfrom
SimonZhao888 wants to merge 1 commit intodotnet:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a regression in the System renderer for dark mode where disabled menu items incorrectly displayed highlighted text when focused with the mouse cursor, making them appear enabled.
Changes:
- Reordered the conditional logic in
OnRenderItemTextto prioritize the disabled state check, ensuring disabled items always display with gray text regardless of selection or pressed state
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #14248 +/- ##
===================================================
+ Coverage 77.17712% 77.18255% +0.00543%
===================================================
Files 3279 3279
Lines 645129 645129
Branches 47728 47728
===================================================
+ Hits 497892 497927 +35
+ Misses 143544 143510 -34
+ Partials 3693 3692 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
ricardobossan
approved these changes
Jan 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #14089
Proposed changes
RenderModeis set toSystemand the application runs under dark mode.Customer Impact
Regression?
Risk
Screenshots
Before
ActualResults.mp4
After
Bug14089.mp4
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow