aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx
index eac010a98df..3dfece11301 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx
@@ -101,7 +101,10 @@ export default class App extends React.PureComponent<Props, State> {
componentDidMount() {
this.mounted = true;
+ // $FlowFixMe
document.body.classList.add('white-page');
+ // $FlowFixMe
+ document.documentElement.classList.add('white-page');
const footer = document.getElementById('footer');
if (footer) {
footer.classList.add('page-footer-with-sidebar');
@@ -134,7 +137,10 @@ export default class App extends React.PureComponent<Props, State> {
componentWillUnmount() {
this.mounted = false;
+ // $FlowFixMe
document.body.classList.remove('white-page');
+ // $FlowFixMe
+ document.documentElement.classList.remove('white-page');
const footer = document.getElementById('footer');
if (footer) {
footer.classList.remove('page-footer-with-sidebar');