Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt status bar color to modal backdrop #13215

Merged
merged 13 commits into from
Dec 7, 2022
Prev Previous commit
Next Next commit
Expand if statement body
dnlfrst committed Dec 2, 2022
commit a409832b1840449a93ee2d15c9e62085fdf71dc4
4 changes: 3 additions & 1 deletion src/components/Modal/index.web.js
Original file line number Diff line number Diff line change
@@ -6,7 +6,9 @@ import * as StyleUtils from '../../styles/StyleUtils';

const Modal = (props) => {
const setStatusBarColor = (color = '') => {
if (!props.fullscreen) { return; }
if (!props.fullscreen) {
return;
}

// Change the color of the status bar to align with the modal's backdrop (refer to https://github.com/Expensify/App/issues/12156).
document.querySelector('meta[name=theme-color]').content = color;