@ons/design-system 66.0.2 → 67.0.1

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 (46) hide show
  1. package/README.md +3 -2
  2. package/components/accordion/_macro.spec.js +2 -8
  3. package/components/accordion/accordion.dom.js +2 -2
  4. package/components/accordion/accordion.spec.js +22 -19
  5. package/components/accordion/example-accordion-open.njk +3 -3
  6. package/components/card/_card.scss +1 -1
  7. package/components/checkboxes/_macro.njk +1 -1
  8. package/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk +1 -1
  9. package/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk +1 -1
  10. package/components/cookies-banner/_macro.njk +1 -1
  11. package/components/cookies-banner/_macro.spec.js +1 -1
  12. package/components/details/_details.scss +66 -57
  13. package/components/details/_macro.njk +5 -5
  14. package/components/details/_macro.spec.js +3 -10
  15. package/components/details/details.dom.js +1 -1
  16. package/components/details/details.js +13 -1
  17. package/components/details/details.spec.js +43 -11
  18. package/components/details/example-details-with-warning.njk +1 -2
  19. package/components/footer/_macro.njk +1 -1
  20. package/components/header/_header.scss +4 -0
  21. package/components/header/_macro.njk +17 -17
  22. package/components/header/_macro.spec.js +128 -5
  23. package/components/header/example-header-external-with-navigation-and-search.njk +57 -0
  24. package/components/input/_input-type.scss +2 -2
  25. package/components/input/_macro.njk +1 -1
  26. package/components/input/_macro.spec.js +4 -16
  27. package/components/input/input.dom.js +11 -0
  28. package/components/input/input.js +14 -0
  29. package/components/input/input.spec.js +28 -0
  30. package/components/label/_macro.njk +2 -2
  31. package/components/navigation/_macro.njk +3 -1
  32. package/components/related-content/_macro.njk +28 -30
  33. package/components/section-navigation/_macro.njk +68 -55
  34. package/components/section-navigation/_section-navigation.scss +20 -2
  35. package/components/video/_macro.njk +11 -11
  36. package/css/main.css +1 -1
  37. package/css/print.css +1 -1
  38. package/js/main.js +1 -0
  39. package/layout/_template.njk +29 -30
  40. package/package.json +1 -1
  41. package/scripts/main.es5.js +1 -1
  42. package/scripts/main.js +1 -1
  43. package/scss/objects/_page.scss +3 -5
  44. package/scss/print.scss +28 -5
  45. package/components/collapsible/_macro.njk +0 -22
  46. package/components/collapsible/_macro.spec.js +0 -151
@@ -30,7 +30,12 @@
30
30
  font-weight: $font-weight-bold;
31
31
  margin-left: -18px;
32
32
  padding-left: 14px;
33
- a {
33
+ a,
34
+ h2,
35
+ h3,
36
+ h4,
37
+ h5,
38
+ h6 {
34
39
  color: var(--ons-color-text-link-active);
35
40
  }
36
41
  }
@@ -39,6 +44,14 @@
39
44
  }
40
45
  }
41
46
 
47
+ &__item-header {
48
+ @extend .ons-u-mb-no;
49
+
50
+ font-size: 1rem;
51
+ font-weight: 700;
52
+ line-height: 1.6;
53
+ }
54
+
42
55
  &__sub-items {
43
56
  a {
44
57
  color: var(--ons-color-text-link);
@@ -58,7 +71,12 @@
58
71
  border-color: var(--ons-color-text-link-active);
59
72
  margin: 0 1rem 0 0;
60
73
  padding: 0;
61
- a {
74
+ a,
75
+ h2,
76
+ h3,
77
+ h4,
78
+ h5,
79
+ h6 {
62
80
  color: var(--ons-color-text-link-active);
63
81
  }
64
82
  }
@@ -2,20 +2,20 @@
2
2
  {%- macro onsVideo(params) -%}
3
3
 
4
4
  {% set linkContents %}
5
- {% if params.image.smallSrc %}
6
- <img class="ons-video__img ons-u-mb-xs" {% if params.image.largeSrc %} srcset="{{ params.image.smallSrc }} 1x, {{ params.image.largeSrc }} 2x"{% endif %} src="{{ params.image.smallSrc }}" alt="{{ params.image.alt }}" loading="lazy">
7
- {% endif %}
8
- <span class="ons-video__link-text ons-u-mt-xs">{{ params.linkText }}</span>
5
+ {% if params.image.smallSrc %}
6
+ <img class="ons-video__img ons-u-mb-xs" {% if params.image.largeSrc %} srcset="{{ params.image.smallSrc }} 1x, {{ params.image.largeSrc }} 2x"{% endif %} src="{{ params.image.smallSrc }}" alt="{{ params.image.alt }}" loading="lazy">
7
+ {% endif %}
8
+ <span class="ons-video__link-text ons-u-mt-xs">{{ params.linkText }}</span>
9
9
  {% endset %}
10
10
 
11
11
  <div class="ons-video ons-js-video">
12
- {{
13
- onsExternalLink({
14
- "url": params.videoLinkURL,
15
- "classes": "ons-video__link ons-js-video-placeholder ons-u-db",
16
- "linkText": linkContents
17
- })
18
- }}
12
+ {{
13
+ onsExternalLink({
14
+ "url": params.videoLinkURL,
15
+ "classes": "ons-video__link ons-js-video-placeholder ons-u-db",
16
+ "linkText": linkContents
17
+ })
18
+ }}
19
19
  <iframe data-src="{{ params.videoEmbedUrl }}" title="{{ params.title }}" class="ons-video__iframe ons-js-video-iframe ons-u-d-no" src="about:blank" frameborder="0" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
20
20
  </div>
21
21
  {%- endmacro -%}