Skip to content
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: rename clump classes; give classes to all audit groups #6482

Merged
merged 1 commit into from
Nov 6, 2018

Conversation

brendankenny
Copy link
Member

working on #6395

The PWA category renderer needs to add custom icons to its groups (like the performance renderer does), but to do so without creating each group itself or grossly reaching into things, this PR sets it up by adding a class name to each group based on the group's id in the config (.lh-audit-group--${groupId}, modelled after the existing lh-audit-group--metrics, lh-audit-group--opportunities, etc).

To not collide with anything, the clump names need to move off a mishmash of class names (lh-failed-audits, lh-audit-group--manual, etc). So we'll just double down on "clump" for those :)

This PR also removes lh-audit-group--unadorned since "unadorned" is not a group name and it's somewhat ambiguous what should fall into that class, but that leaves a bit of a mess with ::before content and margins. I believe I have that all straightened out now. Previously the "unadorned" case took things away from the styling of clumps and important groups, now it's more the default style and clumps and important groups add to it.


assert.equal(passedAudits.length, 0);
assert.equal(failedAudits.length, 12);

assert.equal(elem.querySelector('.lh-passed-audits-summary'), null);
Copy link
Member Author

@brendankenny brendankenny Nov 5, 2018

Choose a reason for hiding this comment

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

lh-passed-audits-summary hasn't been a thing for a long time, so of course it was null :)

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

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

impressive job managing all whitespace.

nice cleanup

Copy link
Member

@exterkamp exterkamp left a comment

Choose a reason for hiding this comment

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

LGTM!

@brendankenny brendankenny merged commit c93b028 into master Nov 6, 2018
@brendankenny brendankenny deleted the groupselector branch November 6, 2018 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants