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

View File

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