-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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: hide disclaimer text in timespan #13931
Conversation
this.dom.safelySetHref(calculatorLink, this._getScoringCalculatorHref(category.auditRefs)); | ||
|
||
// Only add the disclaimer with the score calculator link if the category was rendered with a score gauge. | ||
if (element.querySelector('.lh-gauge__wrapper')) { |
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 used this as the condition because the disclaimer + calculator seem to be tied to the category gauge. It's easy to make this condition depend on gather mode if that would make more sense.
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.
yeah, I think the only downside is that it makes it a more indirect condition, but you're right that at least for now, it's exactly when we show a score gauge that we'd want this message
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.
Can you add tests (and/or add assertions to existing tests)? Otherwise LGTM!
Closes #13929