@ons/design-system 73.0.4 → 73.2.0

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 (31) hide show
  1. package/components/chart/_chart.scss +2 -2
  2. package/components/chart/_macro.spec.js +32 -0
  3. package/components/chart/annotations-options.js +1 -0
  4. package/components/chart/area-chart.js +3 -0
  5. package/components/chart/bar-chart.js +1 -0
  6. package/components/chart/chart.js +6 -4
  7. package/components/chart/column-chart.js +3 -0
  8. package/components/chart/example-area-chart.njk +2 -2
  9. package/components/chart/example-line-chart-with-label-format.njk +89 -0
  10. package/components/chart/reference-line-annotations-options.js +1 -0
  11. package/components/chart/specific-chart-options.js +8 -1
  12. package/components/details-panel/_macro.njk +6 -6
  13. package/components/header/_macro.njk +64 -31
  14. package/components/header/_macro.spec.js +223 -0
  15. package/components/header/example-header-basic-with-search-and-language-DEPRECATED.njk +207 -0
  16. package/components/header/example-header-basic-with-search-and-language.njk +36 -27
  17. package/components/header/example-header-basic-with-search-button.njk +35 -27
  18. package/components/hero/_macro.njk +4 -1
  19. package/components/hero/_macro.spec.js +26 -0
  20. package/components/list/_list.scss +0 -3
  21. package/components/panel/_panel.scss +5 -0
  22. package/components/radios/_macro.njk +1 -1
  23. package/components/skip-to-content/_macro.njk +1 -1
  24. package/components/skip-to-content/_skip.scss +0 -2
  25. package/components/table-of-contents/example-table-of-contents-grouped-with-single-list-item.njk +34 -0
  26. package/css/main.css +1 -1
  27. package/js/cookies-settings.js +5 -5
  28. package/package.json +18 -12
  29. package/scripts/main.es5.js +5 -3
  30. package/scripts/main.js +2 -2
  31. package/scss/utilities/_highlight.scss +2 -1
@@ -1,4 +1,4 @@
1
1
  {% macro onsSkipToContent(params) %}
2
2
  {% set text = params.text | default('Skip to content') %}
3
- <a class="ons-skip-to-content" href="{{ params.url }}">{{ text }}</a>
3
+ <a class="ons-skip-to-content ons-u-fs-r--b" href="{{ params.url }}">{{ text }}</a>
4
4
  {% endmacro %}
@@ -2,8 +2,6 @@
2
2
  clip: rect(0 0 0 0);
3
3
  clip-path: inset(50%);
4
4
  display: block;
5
- font-size: 1.1rem;
6
- font-weight: $font-weight-bold;
7
5
  height: 1px;
8
6
  margin: 0;
9
7
  overflow: hidden;
@@ -0,0 +1,34 @@
1
+ {% from "components/table-of-contents/_macro.njk" import onsTableOfContents %}
2
+
3
+ {{-
4
+ onsTableOfContents({
5
+ "title": 'Contents',
6
+ "ariaLabel": 'Links to page sections',
7
+ "skipLink": {
8
+ "url": '#0',
9
+ "text": 'Skip to guide content'
10
+ },
11
+ "lists": [
12
+ {
13
+ "listHeading": 'Household questions',
14
+ "listHeadingHidden": 'help topics',
15
+ "itemsList": [
16
+ {
17
+ "url": '#household1',
18
+ "text": 'Household and who lives here'
19
+ }
20
+ ]
21
+ },
22
+ {
23
+ "listHeading": 'Individual questions',
24
+ "listHeadingHidden": 'help topics',
25
+ "itemsList": [
26
+ {
27
+ "url": '#individual1',
28
+ "text": 'Name, date of birth and marital status'
29
+ }
30
+ ]
31
+ }
32
+ ]
33
+ })
34
+ -}}