Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
disable dark theme in lighthouse-viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
devnook committed Nov 2, 2021
1 parent 7ddb3a6 commit e6703b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/components/LighthouseViewer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class LighthouseViewer extends BaseStateElement {
renderer.renderReport(lighthouseReport, container);
const features = new ReportUIFeatures(dom);
features.initFeatures(lighthouseReport);
// Force remove dark theme support untill whole of web.dev supports it.
this.varsEl.classList.remove('dark');
};

onStateChanged() {
Expand All @@ -63,6 +65,7 @@ class LighthouseViewer extends BaseStateElement {

firstUpdated() {
this.container = this.querySelector('.lighthouse-viewer');
this.varsEl = this.querySelector('.lh-vars');
}
}

Expand Down

0 comments on commit e6703b5

Please sign in to comment.