-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
report(redesign): move gauge styles to main stylesheet #8893
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -82,7 +82,6 @@ describe('DOM', () => { | |||
const result = prepareLabData(sampleResultsStr, document); | |||
assert.ok(result.scoreGaugeEl instanceof document.defaultView.Element); | |||
assert.equal(result.scoreGaugeEl.querySelector('.lh-gauge__wrapper').href, ''); | |||
assert.ok(result.scoreGaugeEl.outerHTML.includes('<style>'), 'score gauge comes with CSS'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is ok? The PSI renderer already includes report-styles.css
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty sure it does. @exterkamp to confirm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, PSI imports report-styles. Should be g2g!
#8185
Fixes:
The PWA gauge depends on many style declarations defined in the template for regular gauges. When there are no regular gauges, that
style
element never gets add. I moved all those styles to the main stylesheet to cope.