This repository was archived by the owner on Aug 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[lightouse] update template & add "font sizes" reference #5810
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| project_path: /web/tools/_project.yaml | ||
| book_path: /web/tools/_book.yaml | ||
| description: Reference documentation for the "Document Doesn't Use Legible Font Sizes" Lighthouse audit. | ||
|
|
||
| {# wf_updated_on: 2018-02-22 #} | ||
| {# wf_published_on: 2018-02-21 #} | ||
| {# wf_blink_components: Platform>DevTools #} | ||
|
|
||
| # Document Doesn't Use Legible Font Sizes {: .page-title } | ||
|
|
||
| ## Overview {: #overview } | ||
|
|
||
| Font sizes smaller than 12px are often difficult to read on mobile devices, and may require users | ||
| to pinch-to-zoom in order to display the text at a comfortable reading size. | ||
|
|
||
| ## Recommendations {: #recommendations } | ||
|
|
||
| Aim to have a font size of at least 12px on at least 60% of the text on your pages. | ||
| When a page fails the audit, Lighthouse lists the results in a table with 4 columns: | ||
|
|
||
| * **Source**. The source location of the CSS ruleset that is causing the illegible text. | ||
| * **Selector**. The selector of the ruleset. | ||
| * **% of Page Text**. The percentage of text on the page that is affected by the ruleset. | ||
| * **Font Size**. The computed size of the text. | ||
|
|
||
| ### Text is illegible because of a missing viewport config {: #viewport } | ||
|
|
||
| If Lighthouse reports `Text is illegible because of a missing viewport config`, add a | ||
| `<meta name="viewport" content="width=device-width, initial-scale=1">` tag to the `<head>` of | ||
| your document. See [Has A Viewport Meta Tag With Width Or Intial-Scale][viewport]. | ||
|
|
||
| [viewport]: /web/tools/lighthouse/audits/has-viewport-meta-tag | ||
|
|
||
| ## More information {: #more-info } | ||
|
|
||
| [Audit source][src]{:.external} | ||
|
|
||
| [src]: https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/audits/seo/font-size.js |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should we update the audit config to use "Does Not" for consistency with other audits?
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.
One way or the other, I was thinking about putting a PR in to make it consistent across reports
Uh oh!
There was an error while loading. Please reload this page.
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.
Contracting it makes it feel a little more informal, which seems more in line with LH's voice