@ons/design-system 74.0.0-next.10 → 74.0.0-next.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/components/access-code/example-access-code-error.njk +1 -1
  2. package/components/access-code/example-access-code.njk +1 -1
  3. package/components/address-input/_macro.njk +6 -6
  4. package/components/address-input/_macro.spec.js +0 -3
  5. package/components/address-output/_macro.njk +1 -1
  6. package/components/announcement-banner/_announcement-banner.scss +5 -0
  7. package/components/autosuggest/_autosuggest.scss +8 -0
  8. package/components/autosuggest/autosuggest.ui.js +8 -5
  9. package/components/back-to-top/_back-to-top.scss +7 -0
  10. package/components/back-to-top/_macro.njk +1 -1
  11. package/components/char-check-limit/_macro.njk +16 -14
  12. package/components/details/_details.scss +9 -0
  13. package/components/details/example-details-with-warning.njk +1 -1
  14. package/components/featured-article/_macro.njk +4 -4
  15. package/components/featured-article/macro.spec.js +2 -2
  16. package/components/feedback/_macro.njk +4 -1
  17. package/components/feedback/_macro.spec.js +1 -1
  18. package/components/figure/_figure.scss +1 -0
  19. package/components/figure/_macro.njk +3 -3
  20. package/components/footer/_macro.njk +5 -2
  21. package/components/hero/_hero.scss +4 -0
  22. package/components/input/_input.scss +4 -0
  23. package/components/input/_macro.njk +4 -1
  24. package/components/label/_label.scss +3 -0
  25. package/components/list/_list.scss +5 -0
  26. package/components/message-list/_message-list.scss +2 -0
  27. package/components/panel/_macro.njk +1 -1
  28. package/components/panel/_panel.scss +8 -0
  29. package/components/panel/example-panel-bare.njk +1 -1
  30. package/components/phase-banner/_phase-banner.scss +1 -0
  31. package/components/quote/_macro.njk +1 -1
  32. package/components/skip-to-content/_macro.njk +1 -1
  33. package/components/skip-to-content/_skip.scss +8 -0
  34. package/css/main.css +1 -1
  35. package/package.json +1 -1
  36. package/scripts/main.es5.js +1 -1
  37. package/scripts/main.js +1 -1
  38. package/scss/base/_typography.scss +9 -0
  39. package/scss/helpers/_mixins.scss +8 -0
  40. package/scss/utilities/_utilities.scss +10 -0
  41. package/scss/vars/_forms.scss +2 -1
  42. package/scss/vars/_index.scss +1 -0
  43. package/scss/vars/_utilities.scss +2 -0
@@ -76,7 +76,7 @@ layout: ~
76
76
  "variant": "warn"
77
77
  })
78
78
  %}
79
- Someone in your household must still complete a study using this household access code
79
+ <p>Someone in your household must still complete a study using this household access code</p>
80
80
  {% endcall %}
81
81
  {% endset %}
82
82
 
@@ -53,7 +53,7 @@ layout: ~
53
53
  "variant": "warn"
54
54
  })
55
55
  %}
56
- Someone in your household must still complete a study using this household access code
56
+ <p>Someone in your household must still complete a study using this household access code</p>
57
57
  {% endcall %}
58
58
  {% endset %}
59
59
 
@@ -19,7 +19,6 @@
19
19
  "text": params.organisation.label
20
20
  },
21
21
  "classes": "ons-js-address-organisation",
22
- "width": "20@m",
23
22
  "name": params.id + "-organisation",
24
23
  "error": params.organisation.error
25
24
  })
@@ -34,7 +33,6 @@
34
33
  "text": params.line1.label
35
34
  },
36
35
  "classes": "ons-js-address-line1",
37
- "width": "20@m",
38
36
  "name": params.id + "-line1",
39
37
  "error": params.line1.error
40
38
  })
@@ -49,7 +47,6 @@
49
47
  "text": params.line2.label
50
48
  },
51
49
  "classes": "ons-js-address-line2",
52
- "width": "20@m",
53
50
  "name": params.id + "-line2",
54
51
  "error": params.line2.error
55
52
  })
@@ -165,9 +162,12 @@
165
162
  })
166
163
  }}
167
164
  {% if params.manualLinkText %}
168
- <a href="{{ params.manualLinkUrl }}" class="ons-js-address-manual-btn ons-u-mt-s ons-u-dib"
169
- >{{ params.manualLinkText }}</a
170
- >
165
+ {# p tag ensures reading width is applied #}
166
+ <p class="ons-u-mb-no">
167
+ <a href="{{ params.manualLinkUrl }}" class="ons-js-address-manual-btn ons-u-mt-s ons-u-dib"
168
+ >{{ params.manualLinkText }}</a
169
+ >
170
+ </p>
171
171
  {% endif %}
172
172
  </div>
173
173
  {% endif %}
@@ -176,7 +176,6 @@ describe('FOR: Macro: Address-input', () => {
176
176
  text: 'Organisation name',
177
177
  },
178
178
  value: 'Example Organisation',
179
- width: '20@m',
180
179
  error: { text: 'Server error: organisation name' },
181
180
  });
182
181
  });
@@ -191,7 +190,6 @@ describe('FOR: Macro: Address-input', () => {
191
190
  text: 'Address line 1',
192
191
  },
193
192
  value: 'Flat 12345',
194
- width: '20@m',
195
193
  error: { text: 'Server error: address line 1' },
196
194
  });
197
195
  });
@@ -207,7 +205,6 @@ describe('FOR: Macro: Address-input', () => {
207
205
  text: 'Address line 2',
208
206
  },
209
207
  value: '12345 The Road',
210
- width: '20@m',
211
208
  error: { text: 'Server error: address line 2' },
212
209
  });
213
210
  });
@@ -1,5 +1,5 @@
1
1
  {% macro onsAddressOutput(params) %}
2
- <div class="ons-address-output{{ ' ' + params.classes if params.classes else '' }}">
2
+ <div class="ons-address-output ons-u-reading-width{{ ' ' + params.classes if params.classes else '' }}">
3
3
  <p class="ons-address-output__lines">
4
4
  {% if params.unit %}
5
5
  <span class="ons-address-output__unit">{{ params.unit }}</span><br />
@@ -13,6 +13,11 @@
13
13
  background-color: var(--ons-color-gov-red);
14
14
  }
15
15
 
16
+ &__title,
17
+ &__description {
18
+ @include no-reading-width;
19
+ }
20
+
16
21
  &__link {
17
22
  color: var(--ons-color-text-inverse);
18
23
 
@@ -26,6 +26,8 @@
26
26
  }
27
27
 
28
28
  &__results-title {
29
+ @include reading-width;
30
+
29
31
  background: var(--ons-color-grey-15);
30
32
  border-bottom: 1px solid var(--ons-color-input-border);
31
33
  padding: 0.25rem 0.5rem;
@@ -41,6 +43,12 @@
41
43
  }
42
44
  }
43
45
 
46
+ &__option-text {
47
+ @include reading-width;
48
+
49
+ display: block;
50
+ }
51
+
44
52
  &__option {
45
53
  cursor: pointer;
46
54
  margin: 0;
@@ -384,7 +384,7 @@ export default class AutosuggestUI {
384
384
  innerHTML +
385
385
  `<span class="ons-autosuggest__category ons-u-lighter ons-u-fs-s ons-u-db">${resultItem.category}</span>`;
386
386
  }
387
- listElement.innerHTML = innerHTML;
387
+ listElement.innerHTML = `<span class="ons-autosuggest__option-text">${innerHTML}</span>`;
388
388
  listElement.addEventListener('click', () => {
389
389
  this.selectResult(index);
390
390
  });
@@ -401,7 +401,7 @@ export default class AutosuggestUI {
401
401
  const listElement = document.createElement('li');
402
402
  listElement.className = `${classAutosuggestOption} ${classAutosuggestOptionMoreResults}`;
403
403
  listElement.setAttribute('aria-hidden', 'true');
404
- listElement.innerHTML = DOMPurify.sanitize(this.moreResults);
404
+ listElement.innerHTML = `<span class="ons-autosuggest__option-text">${DOMPurify.sanitize(this.moreResults)}</span>`;
405
405
  this.listbox.appendChild(listElement);
406
406
  }
407
407
 
@@ -440,11 +440,14 @@ export default class AutosuggestUI {
440
440
  message = this.typeMore;
441
441
  this.setAriaStatus(message);
442
442
  this.listbox.innerHTML = DOMPurify.sanitize(
443
- `<li class="${classAutosuggestOption} ${classAutosuggestOptionNoResults}">${message}</li>`,
443
+ `<li class="${classAutosuggestOption} ${classAutosuggestOptionNoResults}"><span class="ons-autosuggest__option-text">${message}</span></li>`,
444
444
  );
445
445
  } else if (status > 400 || status === '') {
446
446
  const sanitizedHref = DOMPurify.sanitize(window.location.href);
447
- message = this.errorAPI + (this.errorAPILinkText ? ' <a href="' + sanitizedHref + '">' + this.errorAPILinkText + '</a>.' : '');
447
+ message =
448
+ '<p>' +
449
+ this.errorAPI +
450
+ (this.errorAPILinkText ? ' <a href="' + sanitizedHref + '">' + this.errorAPILinkText + '</a>.</p>' : '');
448
451
  let ariaMessage = this.errorAPI + (this.errorAPILinkText ? ' ' + this.errorAPILinkText : '');
449
452
 
450
453
  this.input.setAttribute('disabled', true);
@@ -459,7 +462,7 @@ export default class AutosuggestUI {
459
462
  } else {
460
463
  message = this.noResults;
461
464
  this.listbox.innerHTML = DOMPurify.sanitize(
462
- `<li class="${classAutosuggestOption} ${classAutosuggestOptionNoResults}">${message}</li>`,
465
+ `<li class="${classAutosuggestOption} ${classAutosuggestOptionNoResults}"><span class="ons-autosuggest__option-text">${message}</span></li>`,
463
466
  );
464
467
  }
465
468
  }
@@ -3,6 +3,13 @@
3
3
  margin-left: 0.25rem;
4
4
  }
5
5
 
6
+ // This element also gets a margin-left value set in the JS to match the content left spacing
7
+ &__content {
8
+ @include reading-width;
9
+
10
+ display: inline-block;
11
+ }
12
+
6
13
  &__enabled {
7
14
  background: none;
8
15
  width: fit-content;
@@ -3,7 +3,7 @@
3
3
  {% macro onsBackToTop(params) %}
4
4
  <div class="ons-back-to-top ons-js-back-to-top ons-back-to-top__enabled">
5
5
  <a href="#{{ params.anchor | default('top') }}" class="ons-back-to-top__link">
6
- <span>
6
+ <span class="ons-back-to-top__content">
7
7
  {{-
8
8
  onsIcon({
9
9
  "iconType": 'arrow-up',
@@ -1,16 +1,18 @@
1
1
  {% macro onsCharLimit(params) %}
2
- {% if params.variant == "check" %}
3
- {% set content = caller() %}
4
- <span class="ons-js-char-check-input">{{ content | safe }}</span>
5
- {% endif %}
6
- <span
7
- id="{{ params.id }}"
8
- class="ons-input__limit ons-u-fs-s--b ons-u-d-no ons-u-mt-2xs"
9
- data-count-type="{{ params.variant if params.variant == 'word' else 'char' }}"
10
- data-message-singular="{% if params.variant == 'word' %}{{ params.wordCountSingular }}{% else %}{{ params.charCountSingular }}{% endif %}"
11
- data-message-plural="{% if params.variant == 'word' %}{{ params.wordCountPlural }}{% else %}{{ params.charCountPlural }}{% endif %}"
12
- data-message-over-limit-singular="{% if params.variant == 'word' %}{{ params.wordCountOverLimitSingular | default("You have exceeded the word limit by {x} word") }}{% else %}{{ params.charCountOverLimitSingular | default("You have exceeded the character limit by {x} character") }}{% endif %}"
13
- data-message-over-limit-plural="{% if params.variant == 'word' %}{{ params.wordCountOverLimitPlural | default("You have exceeded the word limit by {x} words") }}{% else %}{{ params.charCountOverLimitPlural | default("You have exceeded the character limit by {x} characters") }}{% endif %}"
14
- >
15
- </span>
2
+ <div class="ons-u-reading-width">
3
+ {% if params.variant == "check" %}
4
+ {% set content = caller() %}
5
+ <span class="ons-js-char-check-input">{{ content | safe }}</span>
6
+ {% endif %}
7
+ <span
8
+ id="{{ params.id }}"
9
+ class="ons-input__limit ons-u-fs-s--b ons-u-d-no ons-u-mt-2xs"
10
+ data-count-type="{{ params.variant if params.variant == 'word' else 'char' }}"
11
+ data-message-singular="{% if params.variant == 'word' %}{{ params.wordCountSingular }}{% else %}{{ params.charCountSingular }}{% endif %}"
12
+ data-message-plural="{% if params.variant == 'word' %}{{ params.wordCountPlural }}{% else %}{{ params.charCountPlural }}{% endif %}"
13
+ data-message-over-limit-singular="{% if params.variant == 'word' %}{{ params.wordCountOverLimitSingular | default("You have exceeded the word limit by {x} word") }}{% else %}{{ params.charCountOverLimitSingular | default("You have exceeded the character limit by {x} character") }}{% endif %}"
14
+ data-message-over-limit-plural="{% if params.variant == 'word' %}{{ params.wordCountOverLimitPlural | default("You have exceeded the word limit by {x} words") }}{% else %}{{ params.charCountOverLimitPlural | default("You have exceeded the character limit by {x} characters") }}{% endif %}"
15
+ >
16
+ </span>
17
+ </div>
16
18
  {% endmacro %}
@@ -77,6 +77,15 @@ $details-caret-width: 1.75rem;
77
77
  display: block;
78
78
  margin: 1rem 0 0 0.5rem;
79
79
  padding: 0 0 0 1.5rem;
80
+
81
+ // Restrict the width of textual content within the details content (paragraphs are already globally restricted)
82
+
83
+ ul,
84
+ ol,
85
+ label,
86
+ legend {
87
+ @include reading-width;
88
+ }
80
89
  }
81
90
  }
82
91
 
@@ -16,6 +16,6 @@
16
16
  "variant": "warn"
17
17
  })
18
18
  %}
19
- Someone in your household must still complete a survey using a household access code
19
+ <p>Someone in your household must still complete a survey using a household access code</p>
20
20
  {% endcall %}
21
21
  {% endcall %}
@@ -31,12 +31,12 @@
31
31
 
32
32
  {# The media (a nested figure containing a chart or image) is provided via the caller
33
33
  block, so the article does not need to know how the content is rendered. #}
34
- <div class="ons-featured__media">
35
- {{ caller() if caller }}
36
- </div>
34
+ <div class="ons-featured__media">{{ caller() if caller }}</div>
37
35
 
38
36
  {% if params.description %}
39
- <div class="ons-featured__description">{{ params.description | safe }}</div>
37
+ <div class="ons-featured__description">
38
+ <div class="ons-u-reading-width">{{ params.description | safe }}</div>
39
+ </div>
40
40
  {% endif %}
41
41
  </div>
42
42
  {% endmacro %}
@@ -123,8 +123,8 @@ describe('Macro: Featured Article', () => {
123
123
  EXAMPLE_CHART_CALLER_CONTENT,
124
124
  ),
125
125
  );
126
- const title = $('.ons-featured__description').html().trim();
127
- expect(title).toBe('Some description');
126
+ const description = $('.ons-featured__description .ons-u-reading-width').html().trim();
127
+ expect(description).toBe('Some description');
128
128
  });
129
129
  });
130
130
  });
@@ -7,6 +7,9 @@
7
7
  {{ params.heading }}
8
8
  {{ closingHeadingTag | safe }}
9
9
  <p class="ons-feedback__content">{{- params.content | safe -}}</p>
10
- <a href="{{ params.linkUrl }}" class="ons-feedback__link">{{- params.linkText -}}</a>
10
+ {# p tag ensures reading width is applied #}
11
+ <p class="ons-u-mb-no">
12
+ <a href="{{ params.linkUrl }}" class="ons-feedback__link">{{- params.linkText -}}</a>
13
+ </p>
11
14
  </div>
12
15
  {% endmacro %}
@@ -110,7 +110,7 @@ describe('FOR: Macro: Feedback', () => {
110
110
  describe('WHEN: content is provided', () => {
111
111
  const $ = cheerio.load(renderComponent('feedback', EXAMPLE_FEEDBACK));
112
112
  test('THEN: renders paragraph with the provided content', () => {
113
- expect($('p').text().trim()).toBe('Feedback content...');
113
+ expect($('p').first().text().trim()).toBe('Feedback content...');
114
114
  });
115
115
  });
116
116
  });
@@ -6,6 +6,7 @@
6
6
  font-size: 1.125rem;
7
7
  font-weight: $font-weight-bold;
8
8
  line-height: 1.3;
9
+ display: block;
9
10
  }
10
11
 
11
12
  &__title {
@@ -34,7 +34,7 @@
34
34
 
35
35
  {{ openingRootTag | safe }}
36
36
  {% if params.figureNumber %}
37
- <span class="ons-figure__number">{{ params.figureNumber }}</span>
37
+ <span class="ons-figure__number ons-u-reading-width">{{ params.figureNumber }}</span>
38
38
  {% endif %}
39
39
  {% if params.title %}
40
40
  {{ openingTitleTag | safe }}{{ params.title }}{{ closingTitleTag | safe }}
@@ -61,9 +61,9 @@
61
61
 
62
62
  {% if params.caption %}
63
63
  {% if rootElement == 'figure' %}
64
- <figcaption class="ons-figure__caption">{{ params.caption }}</figcaption>
64
+ <figcaption class="ons-figure__caption ons-u-reading-width">{{ params.caption }}</figcaption>
65
65
  {% else %}
66
- <span class="ons-figure__caption">{{ params.caption }}</span>
66
+ <span class="ons-figure__caption ons-u-reading-width">{{ params.caption }}</span>
67
67
  {% endif %}
68
68
  {% endif %}
69
69
  {{ closingRootTag | safe }}
@@ -53,14 +53,17 @@
53
53
  {% if params.footerWarning %}
54
54
  {% from "components/panel/_macro.njk" import onsPanel %}
55
55
  <div class="ons-footer__warning">
56
- <div class="ons-container">
56
+ <div
57
+ class="ons-container{{ ' ons-container--full-width' if params.fullWidth else "" }}{{ ' ons-container--wide' if params.wide else "" }}"
58
+ >
57
59
  {%
58
60
  call onsPanel({
59
61
  "variant": "warn",
60
62
  "classes": "ons-panel--warn--footer"
61
63
  })
62
64
  %}
63
- {{ params.footerWarning | safe }}
65
+ {# p tag ensures reading width is applied #}
66
+ <div class="ons-u-reading-width">{{ params.footerWarning | safe }}</div>
64
67
  {% endcall %}
65
68
  </div>
66
69
  </div>
@@ -466,6 +466,10 @@
466
466
  display: flex;
467
467
  flex-direction: column-reverse;
468
468
  }
469
+
470
+ &__text {
471
+ @include no-reading-width;
472
+ }
469
473
  }
470
474
 
471
475
  @include panel-variant(ons-red, var(--ons-color-errors), var(--ons-color-errors-tint));
@@ -43,6 +43,10 @@
43
43
  &--textarea {
44
44
  // Prevent inner shadow on iOS
45
45
  appearance: none;
46
+
47
+ &:not(.ons-input--header-search, [class*='--w-']) {
48
+ @include reading-width;
49
+ }
46
50
  }
47
51
 
48
52
  &:focus {
@@ -60,7 +60,10 @@
60
60
  <!-- prettier-ignore-end -->
61
61
  {% endif %}
62
62
  {% if params.postTextboxLinkText %}
63
- <a class="ons-u-fs-s ons-input__post-link" href="{{ params.postTextboxLinkUrl }}">{{ params.postTextboxLinkText }}</a>
63
+ {# p tag ensures reading width is applied #}
64
+ <p class="ons-u-mb-no">
65
+ <a class="ons-u-fs-s ons-input__post-link" href="{{ params.postTextboxLinkUrl }}">{{ params.postTextboxLinkText }}</a>
66
+ </p>
64
67
  {% endif %}
65
68
  {% endset %}
66
69
 
@@ -1,4 +1,6 @@
1
1
  .ons-label {
2
+ @include reading-width;
3
+
2
4
  color: inherit;
3
5
  display: block;
4
6
  font-weight: $font-weight-bold;
@@ -6,6 +8,7 @@
6
8
 
7
9
  &__description {
8
10
  @extend .ons-u-fs-s;
11
+ @include reading-width;
9
12
 
10
13
  display: block;
11
14
  }
@@ -3,6 +3,8 @@
3
3
  padding: 0 0 0 1.5rem;
4
4
 
5
5
  &__item {
6
+ @include reading-width;
7
+
6
8
  &:first-child {
7
9
  margin-top: 0.5rem;
8
10
  }
@@ -109,14 +111,17 @@
109
111
  }
110
112
 
111
113
  @include bp-suffix('ons-list--inline') {
114
+ /* stylelint-disable-next-line nesting-selector-no-missing-scoping-root */
112
115
  &:not(.ons-list--icons) {
113
116
  margin: 0 1rem 0 0;
114
117
  .ons-list__item {
118
+ max-width: none;
115
119
  display: inline-block;
116
120
  margin: 0 1rem 0 0;
117
121
  }
118
122
  }
119
123
 
124
+ /* stylelint-disable-next-line nesting-selector-no-missing-scoping-root */
120
125
  &.ons-list--icons {
121
126
  align-items: center;
122
127
  display: flex;
@@ -16,6 +16,8 @@
16
16
  }
17
17
 
18
18
  &__metadata {
19
+ @include reading-width;
20
+
19
21
  margin: 0 0 1rem;
20
22
 
21
23
  &-term,
@@ -62,7 +62,7 @@
62
62
  {% set closingTag = "</" ~ titleTag ~ ">" %}
63
63
  <div class="ons-panel__header">
64
64
  {{ openingTag | safe }} id="alert"{% if params.variant %}data-qa="{{ params.variant }}-header"{% endif %}
65
- class="ons-panel__title ons-u-fs-r--b">{{ params.title | safe }}{{ closingTag | safe }}
65
+ class="ons-panel__title ons-u-fs-r--b ons-u-reading-width">{{ params.title | safe }}{{ closingTag | safe }}
66
66
  </div>
67
67
  {% else %}
68
68
  {% if not params.variant or params.variant == "branded" or params.variant == "info" or params.variant == "bare" %}
@@ -112,6 +112,14 @@
112
112
  margin: 0;
113
113
  }
114
114
  }
115
+
116
+ // Restrict the width of textual content within the panel body (paragraphs are already globally restricted)
117
+ ul,
118
+ ol,
119
+ label,
120
+ legend {
121
+ @include reading-width;
122
+ }
115
123
  }
116
124
 
117
125
  &__error {
@@ -6,5 +6,5 @@
6
6
  "iconType": 'lock'
7
7
  })
8
8
  %}
9
- Here is some text with an icon
9
+ <p>Here is some text with an icon</p>
10
10
  {% endcall %}
@@ -15,5 +15,6 @@
15
15
 
16
16
  &__desc {
17
17
  margin-top: 0.25rem;
18
+ @include no-reading-width;
18
19
  }
19
20
  }
@@ -1,5 +1,5 @@
1
1
  {% macro onsQuote(params) %}
2
- <blockquote class="ons-quote">
2
+ <blockquote class="ons-quote ons-u-reading-width">
3
3
  {% from "components/icon/_macro.njk" import onsIcon %}
4
4
  {{-
5
5
  onsIcon({
@@ -1,6 +1,6 @@
1
1
  {% macro onsSkipToContent(params) %}
2
2
  <div role="region">
3
3
  {% set text = params.text | default('Skip to content') %}
4
- <a class="ons-skip-to-content ons-u-fs-r--b" href="{{ params.url }}">{{ text }}</a>
4
+ <a class="ons-skip-to-content ons-u-fs-r--b" href="{{ params.url }}"><span class="ons-skip-to-content__text">{{ text }}</span></a>
5
5
  </div>
6
6
  {% endmacro %}
@@ -1,4 +1,5 @@
1
1
  .ons-skip-to-content {
2
+ /* stylelint-disable-next-line property-no-deprecated */
2
3
  clip: rect(0 0 0 0);
3
4
  clip-path: inset(50%);
4
5
  display: block;
@@ -13,6 +14,7 @@
13
14
  &:focus {
14
15
  background-color: var(--ons-color-focus);
15
16
  box-shadow: 0;
17
+ /* stylelint-disable-next-line property-no-deprecated */
16
18
  clip: auto;
17
19
  clip-path: none;
18
20
  color: var(--ons-color-text-link-focus);
@@ -28,4 +30,10 @@
28
30
  white-space: inherit;
29
31
  width: auto;
30
32
  }
33
+
34
+ &__text {
35
+ // Reading width max-width is hard-coded as skip to content sits outside the `ons-container` class
36
+ max-width: $reading-width;
37
+ display: block;
38
+ }
31
39
  }