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: don't use unnessary monospace #9626

Merged
merged 2 commits into from
Sep 5, 2019
Merged

report: don't use unnessary monospace #9626

merged 2 commits into from
Sep 5, 2019

Conversation

paulirish
Copy link
Member

we shouldn't render sentences or paragraphs in monospace. not very readable.

before
image

after
image

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.

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)},
Copy link
Collaborator

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.

Copy link
Member

@brendankenny brendankenny Aug 31, 2019

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

Copy link
Member

@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.

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)},
Copy link
Member

@brendankenny brendankenny Aug 31, 2019

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

@connorjclark
Copy link
Collaborator

image

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.

5 participants