UX: Fix modal header background color in webview (#29717)

This commit is contained in:
Penar Musaraj 2024-11-12 12:47:14 -05:00 committed by GitHub
parent d97d48ead1
commit 4c1af2f414
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 4 deletions

View File

@ -21,10 +21,13 @@ export default class FooterNav extends Component {
}
_modalOff() {
postRNWebviewMessage(
"headerBg",
document.documentElement.style.getPropertyValue("--header_background")
);
const header = document.querySelector(".d-header-wrap .d-header");
if (header) {
postRNWebviewMessage(
"headerBg",
window.getComputedStyle(header).backgroundColor
);
}
}
@action