-
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: remove href from category score gauge #13180
Conversation
@@ -333,7 +333,7 @@ export class CategoryRenderer { | |||
renderScoreGauge(category, groupDefinitions) { // eslint-disable-line no-unused-vars | |||
const tmpl = this.dom.createComponent('gauge'); | |||
const wrapper = this.dom.find('a.lh-gauge__wrapper', tmpl); | |||
this.dom.safelySetHref(wrapper, `#${category.id}`); |
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.
alternative: remove href from
lighthouse/report/assets/templates.html
Line 552 in 236b30d
<a href="#" class="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.
this works.
I'll put up a PR building on this one to replace #13016
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 thought we only wanted to remove the href for itself in its own category, not remove it for all gauges?
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.
@paulirish seems like you have a plan for this, shall I designate you as the reviewer here?
@@ -549,7 +549,7 @@ | |||
|
|||
<!-- Lighthouse score gauge --> | |||
<template id="gauge"> | |||
<a href="#" class="lh-gauge__wrapper"> | |||
<a class="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.
should these even be anchors then?
fixes #13170