-
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: don't use unnessary monospace #9626
Conversation
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.
also needs fixture update I believe
@@ -78,7 +78,7 @@ class ErrorLogs extends Audit { | |||
/** @type {LH.Audit.Details.Table['headings']} */ | |||
const headings = [ | |||
{key: 'url', itemType: 'url', text: str_(i18n.UIStrings.columnURL)}, | |||
{key: 'description', itemType: 'code', text: str_(UIStrings.columnDesc)}, | |||
{key: 'description', itemType: 'text', text: str_(UIStrings.columnDesc)}, |
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 think I'd prefer to keep this one as code since in my experience these are less wall of text than deprecation explanations, but I don't feel terribly strongly.
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 probably agree with this (and monospace matches how it's displayed in the devtools console), but without auto code markdown for the symbols in each of these, display won't be ideal, mono or not
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.
also needs an update:sample-json
@@ -78,7 +78,7 @@ class ErrorLogs extends Audit { | |||
/** @type {LH.Audit.Details.Table['headings']} */ | |||
const headings = [ | |||
{key: 'url', itemType: 'url', text: str_(i18n.UIStrings.columnURL)}, | |||
{key: 'description', itemType: 'code', text: str_(UIStrings.columnDesc)}, | |||
{key: 'description', itemType: 'text', text: str_(UIStrings.columnDesc)}, |
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 probably agree with this (and monospace matches how it's displayed in the devtools console), but without auto code markdown for the symbols in each of these, display won't be ideal, mono or not
we shouldn't render sentences or paragraphs in monospace. not very readable.
before
![image](https://user-images.githubusercontent.com/39191/63970148-4b411500-ca58-11e9-8e1b-10a346a01efa.png)
after
![image](https://user-images.githubusercontent.com/39191/63970142-454b3400-ca58-11e9-8c7a-29839e023d6f.png)