Fix theming problems on account settings and custom-status modals (#1202)

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
This commit is contained in:
Jesús Espino 2021-09-21 16:29:08 +02:00 committed by GitHub
parent ec0fab5b03
commit d6be51de76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,7 @@ const MainApp = (props: Props) => {
useEffect(() => { useEffect(() => {
document.body.classList.add('focalboard-body') document.body.classList.add('focalboard-body')
document.body.classList.add('app__body')
const root = document.getElementById('root') const root = document.getElementById('root')
if (root) { if (root) {
root.classList.add('focalboard-plugin-root') root.classList.add('focalboard-plugin-root')
@ -76,6 +77,7 @@ const MainApp = (props: Props) => {
return () => { return () => {
document.body.classList.remove('focalboard-body') document.body.classList.remove('focalboard-body')
document.body.classList.remove('app__body')
if (root) { if (root) {
root.classList.remove('focalboard-plugin-root') root.classList.remove('focalboard-plugin-root')
} }