Skip to content

Commit

Permalink
core(layout-shift-elements): add link to documentation (#14466)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraine authored Oct 25, 2022
1 parent 5e6d00b commit d442e35
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions core/audits/layout-shift-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import * as i18n from '../lib/i18n/i18n.js';
const UIStrings = {
/** Descriptive title of a diagnostic audit that provides up to the top five elements contributing to Cumulative Layout Shift. */
title: 'Avoid large layout shifts',
/** Description of a diagnostic audit that provides up to the top five elements contributing to Cumulative Layout Shift. */
description: 'These DOM elements contribute most to the CLS of the page.',
/** Description of a diagnostic audit that provides up to the top five elements contributing to Cumulative Layout Shift. The last sentence starting with 'Learn' becomes link text to additional documentation. */
description: 'These DOM elements contribute most to the CLS of the page. [Learn how to improve CLS](https://web.dev/optimize-cls/)',
/** Label for a column in a data table; entries in this column will be the amount that the corresponding element contributes to the total CLS metric score. */
columnContribution: 'CLS Contribution',
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@
"layout-shift-elements": {
"id": "layout-shift-elements",
"title": "Avoid large layout shifts",
"description": "These DOM elements contribute most to the CLS of the page.",
"description": "These DOM elements contribute most to the CLS of the page. [Learn how to improve CLS](https://web.dev/optimize-cls/)",
"score": null,
"scoreDisplayMode": "informative",
"displayValue": "5 elements found",
Expand Down Expand Up @@ -8470,7 +8470,7 @@
"layout-shift-elements": {
"id": "layout-shift-elements",
"title": "Avoid large layout shifts",
"description": "These DOM elements contribute most to the CLS of the page.",
"description": "These DOM elements contribute most to the CLS of the page. [Learn how to improve CLS](https://web.dev/optimize-cls/)",
"score": null,
"scoreDisplayMode": "informative",
"displayValue": "1 element found",
Expand Down Expand Up @@ -15633,7 +15633,7 @@
"layout-shift-elements": {
"id": "layout-shift-elements",
"title": "Avoid large layout shifts",
"description": "These DOM elements contribute most to the CLS of the page.",
"description": "These DOM elements contribute most to the CLS of the page. [Learn how to improve CLS](https://web.dev/optimize-cls/)",
"score": null,
"scoreDisplayMode": "notApplicable",
"details": {
Expand Down
2 changes: 1 addition & 1 deletion core/test/results/sample_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2259,7 +2259,7 @@
"layout-shift-elements": {
"id": "layout-shift-elements",
"title": "Avoid large layout shifts",
"description": "These DOM elements contribute most to the CLS of the page.",
"description": "These DOM elements contribute most to the CLS of the page. [Learn how to improve CLS](https://web.dev/optimize-cls/)",
"score": null,
"scoreDisplayMode": "informative",
"displayValue": "5 elements found",
Expand Down
2 changes: 1 addition & 1 deletion shared/localization/locales/en-US.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shared/localization/locales/en-XL.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d442e35

Please sign in to comment.