Skip to content

[0.85] Fix inactive Modal title bar contrast - #16449

Merged
anuagragith merged 2 commits into
microsoft:0.85-stablefrom
anuagragith:backport/modal-inactive-title-contrast-0.85
Sep 24, 2026
Merged

anuagragith merged 2 commits into
microsoft:0.85-stablefrom
anuagragith:backport/modal-inactive-title-contrast-0.85

Conversation

@anuagragith

@anuagragith anuagragith commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #16434 to 0.85-stable. Fixes ADO 63976889. The cherry-pick is patch-identical to the merged fix, git diff --check passes, and the complete Debug x64 Microsoft.ReactNative.dll builds against React Native 0.85.3.

Microsoft Reviewers: Open in CodeFlow
@anuagragith
anuagragith requested a review from a team as a code owner September 17, 2026 20:57
Copilot AI balanced review requested due to automatic review settings September 17, 2026 20:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Remounting an existing Modal can leave its title-bar colors stale until another theme event.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Backports the React Native Windows Modal title-bar contrast fix to 0.85-stable.

Changes:

  • Adds theme-aware active, inactive, hover, and pressed title-bar colors.
  • Handles runtime theme changes and stale queued updates.
  • Adds a prerelease change record.
File summaries
File Description
WindowsModalHostViewComponentView.cpp Implements Modal title-bar theming.
react-native-windows-580ee5e2-c630-4ce8-a1a3-14ee5a18a571.json Records the package change.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +208 to +210
m_themeSource = winrt::make_weak(themeSource);
m_theme = themeSource.Theme();
const auto themeSubscriptionGeneration = m_themeSubscriptionGeneration;
anuagragith and others added 2 commits September 23, 2026 11:33
* Change files

* Fix inactive Modal title bar contrast

Use theme-aware AppWindowTitleBar colors for active and inactive Modal caption states while preserving true window activation and runtime theme updates.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 8f4dac7d-4a14-4053-bd3b-a7cda2967006

---------

Co-authored-by: Anukrati Agrawal <anuagra@microsoft.com>
Copilot-Session: 8f4dac7d-4a14-4053-bd3b-a7cda2967006
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 0f63ea4f-a16b-4fa3-b141-785aec89b5e4
@anuagragith
anuagragith force-pushed the backport/modal-inactive-title-contrast-0.85 branch from 342daab to 330d01f Compare September 23, 2026 18:56
Copilot AI review requested due to automatic review settings September 23, 2026 18:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Remounting an existing Modal can leave its title-bar colors stale.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
@anuagragith
anuagragith merged commit 371ec7f into microsoft:0.85-stable Sep 24, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants