Skip to content

Conversation

@connorjclark
Copy link
Collaborator

Fixes #9096

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % design nit

Our design makes it kinda difficult to tell it's in a disabled state though, maybe we could at least throw cursor: not-allowed on the label? could probably use some love from @yuinchien :)

const filterTemplate = this._dom.cloneTemplate('#tmpl-lh-3p-filter', this._templateContext);
const filterInput = this._dom.find('input', filterTemplate);
const filterInput =
/** @type {HTMLInputElement} */ (this._dom.find('input', filterTemplate));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

man it'd really be nice to type this for some basic HTMLXElement inference

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but how often do we even select on just the tagname?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not enough to make me want to put in the effort to do it for real :)

image

Copy link
Contributor

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM2

maybe we could at least throw cursor: not-allowed on the label

how did we get cursor: pointer on there, while we're at it? That's not typical for a checkbox...

Agreed that the disabled checkbox is a little subtle since the label dominates there. Maybe remove cursor: pointer and do more to show that it's disabled?

@connorjclark
Copy link
Collaborator Author

image

@brendankenny
Copy link
Contributor

I mean, looks good to me...maybe we'll issue a last call, land, and then fix later if folks have an issue with it :)

@paulirish @yuinchien

@yuinchien
Copy link
Collaborator

@brendankenny @paulirish

Can we update the "Show 3rd Party Resources" button to the new design similar to the Performance Metrics toggle button?

Screen Shot 2019-07-10 at 12 08 00 PM

Screen Shot 2019-07-10 at 12 05 30 PM

The product logos for Wordpress should be aligned to the top next to the text description, I might be wrong but the latest screenshot appears to have the logo center aligned horizontally.

Screen Shot 2019-07-10 at 12 06 12 PM

@brendankenny
Copy link
Contributor

Can we update the "Show 3rd Party Resources" button to the new design similar to the Performance Metrics toggle button?

maybe in a follow up PR and limit this one to just keeping the option visible at all times?

If we change to the toggle that makes it easy to ship this PR without further style bikeshedding, cause we aren't going to keep it anyways :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable third party filter when no third parties present

5 participants