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:
parent
ec0fab5b03
commit
d6be51de76
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,7 @@ const MainApp = (props: Props) => {
|
|||
|
||||
useEffect(() => {
|
||||
document.body.classList.add('focalboard-body')
|
||||
document.body.classList.add('app__body')
|
||||
const root = document.getElementById('root')
|
||||
if (root) {
|
||||
root.classList.add('focalboard-plugin-root')
|
||||
|
@ -76,6 +77,7 @@ const MainApp = (props: Props) => {
|
|||
|
||||
return () => {
|
||||
document.body.classList.remove('focalboard-body')
|
||||
document.body.classList.remove('app__body')
|
||||
if (root) {
|
||||
root.classList.remove('focalboard-plugin-root')
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue