-
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): inline display text. bold audit header text #8592
Changes from 5 commits
a0964bb
b2b3bc3
1e1d083
7720998
269f6c8
afe4540
fe24d28
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -443,7 +443,6 @@ | |||||
} | ||||||
|
||||||
|
||||||
.lh-audit__title, | ||||||
.lh-audit__display-text, | ||||||
.lh-load-opportunity__sparkline, | ||||||
.lh-chevron-container { | ||||||
|
@@ -453,13 +452,20 @@ | |||||
margin-right: 0; | ||||||
} | ||||||
|
||||||
.lh-audit__title { | ||||||
.lh-audit__display-text { | ||||||
flex: 1; | ||||||
} | ||||||
|
||||||
/* Prepend display text with em dash separator. But not in Opportunities. */ | ||||||
.lh-audit-group:not(.lh-audit-group--load-opportunities) .lh-audit__display-text:not(:empty):before { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. best practices aren't grouped so aren't getting the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||||||
content: '—'; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can this just go in the HTML? Kind of weird to do it with a pseudo-element There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why? dt encoding issues are resolved There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @brendankenny can't just be HTML, need some sort of logic check. makes sense to me to have the display + logic in one place here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I don't think it needs to be. Opportunities and the rest of the audits share text with a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch on the template thing. But would still need a length check - and can't make a CSS rule for preceding sibling (pseudo code below).
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. per discussion in chat.. let's use whitespace on both sides of the dash. Assuming we want to use margin-right: var(--audit-item-gap); There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||||||
margin-right: var(--audit-item-gap); | ||||||
} | ||||||
|
||||||
/* Expandable Details (Audit Groups, Audits) */ | ||||||
.lh-audit__header { | ||||||
display: flex; | ||||||
font-weight: 500; | ||||||
padding: var(--lh-audit-vpadding) 0; | ||||||
} | ||||||
|
||||||
|
@@ -622,7 +628,6 @@ | |||||
|
||||||
.lh-load-opportunity__col { | ||||||
display: flex; | ||||||
justify-content: space-between; | ||||||
} | ||||||
|
||||||
.lh-load-opportunity__col--one { | ||||||
|
@@ -806,6 +811,7 @@ | |||||
} | ||||||
.lh-audit-group__header span.lh-audit-group__description::before { | ||||||
content: '—'; | ||||||
margin: 0px var(--audit-item-gap); | ||||||
} | ||||||
|
||||||
.lh-clump > .lh-audit-group__header, | ||||||
|
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.
while this selector does look crazy, it turns out to be reasonable.. 👍
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.
:)