From ca368ad5a48245d26d1bdc1a1a197ce0ac6e6252 Mon Sep 17 00:00:00 2001 From: Abhijeet Jha <74712637+iamAbhi-916@users.noreply.github.com> Date: Fri, 5 Dec 2025 14:53:10 +0530 Subject: [PATCH] Modal outstanding issues (#15445) * solve modal foreground/background issue and only have a closebutton on title bar with no icon * Change files --- ...-b90b1242-253d-40d8-af6d-4722b31c1677.json | 7 +++++++ .../WindowsModalHostViewComponentView.cpp | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 change/react-native-windows-b90b1242-253d-40d8-af6d-4722b31c1677.json diff --git a/change/react-native-windows-b90b1242-253d-40d8-af6d-4722b31c1677.json b/change/react-native-windows-b90b1242-253d-40d8-af6d-4722b31c1677.json new file mode 100644 index 00000000000..34147234531 --- /dev/null +++ b/change/react-native-windows-b90b1242-253d-40d8-af6d-4722b31c1677.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "solve modal foreground/background issue and only have a closebutton on title bar with no icon", + "packageName": "react-native-windows", + "email": "74712637+iamAbhi-916@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/vnext/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp b/vnext/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp index 968d070aeb6..82320c8bd2e 100644 --- a/vnext/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +++ b/vnext/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp @@ -66,6 +66,12 @@ struct ModalHostView : public winrt::implementstitle.has_value()) { winrt::hstring titleValue = winrt::to_hstring(m_localProps->title.value());