@ons/design-system 70.0.9 → 70.0.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 (40) hide show
  1. package/components/address-output/example-address-output.njk +11 -0
  2. package/components/document-list/{document-list.scss → _document-list.scss} +4 -4
  3. package/components/header/_macro.spec.js +513 -721
  4. package/components/header/_test_examples.js +157 -0
  5. package/components/label/_label.scss +1 -1
  6. package/components/list/_list.scss +14 -11
  7. package/components/list/_macro.njk +3 -3
  8. package/components/list/_macro.spec.js +3 -6
  9. package/components/list/example-bare-list.njk +21 -0
  10. package/components/list/example-bulleted-list.njk +17 -0
  11. package/components/list/example-dashed-list.njk +20 -0
  12. package/components/list/example-inline-list-with-social-icon-prefix.njk +42 -0
  13. package/components/list/example-inline-list.njk +20 -0
  14. package/components/list/example-list-with-icon-prefix.njk +18 -0
  15. package/components/list/example-list-with-icon-suffix.njk +18 -0
  16. package/components/list/example-nested-list.njk +39 -0
  17. package/components/list/example-numbered-list.njk +17 -0
  18. package/components/list/example-prefixed-list.njk +19 -0
  19. package/components/list/example-suffixed-list.njk +19 -0
  20. package/components/list/example-summary-list.njk +17 -0
  21. package/components/navigation/_macro.njk +1 -1
  22. package/components/navigation/_macro.spec.js +1 -1
  23. package/components/quote/example-quote.njk +7 -0
  24. package/components/related-content/example-related-content-social-media.njk +0 -1
  25. package/components/section-navigation/_macro.njk +1 -1
  26. package/components/section-navigation/example-section-navigation-single-vertical-with-title.njk +23 -0
  27. package/components/summary/_macro.njk +1 -1
  28. package/components/text-indent/example-text-indent.njk +6 -0
  29. package/css/main.css +1 -1
  30. package/img/large/placeholder-card.png +0 -0
  31. package/img/small/placeholder-card.png +0 -0
  32. package/layout/_dsTemplate.njk +1 -1
  33. package/package.json +1 -1
  34. package/scss/main.scss +1 -1
  35. package/scss/utilities/_index.scss +1 -1
  36. package/scss/utilities/{_pad.scss → _padding.scss} +6 -6
  37. package/scss/vars/_colors.scss +1 -2
  38. package/components/back-link/example-back-link.njk +0 -17
  39. package/components/helpers/_grid.scss +0 -6
  40. package/components/helpers/grid.njk +0 -20
@@ -0,0 +1,11 @@
1
+ {% from "components/address-output/_macro.njk" import onsAddressOutput %}
2
+ {{
3
+ onsAddressOutput({
4
+ "unit": 'Unit 5',
5
+ "organisation": 'Trescos',
6
+ "line1": 'Abingdon Road',
7
+ "line2": 'Goathill',
8
+ "town": 'Barry',
9
+ "postcode": 'AB12 6UH'
10
+ })
11
+ }}
@@ -113,7 +113,7 @@
113
113
 
114
114
  &__item-image--file & {
115
115
  &__image-link {
116
- border-color: var(--ons-color-borders-document-image);
116
+ border-color: var(--ons-color-borders);
117
117
 
118
118
  &--placeholder {
119
119
  height: 136px;
@@ -128,16 +128,16 @@
128
128
  width: 100%;
129
129
 
130
130
  &:focus {
131
- background-color: var(--ons-color-image-placeholder) !important;
131
+ background-color: var(--ons-color-placeholder) !important;
132
132
  border: 2px solid var(--ons-color-borders-document-image-focus);
133
133
  box-shadow: none;
134
134
  outline: 4px solid var(--ons-color-focus) !important;
135
- outline-offset: 0;
135
+ outline-offset: 0 !important;
136
136
  }
137
137
 
138
138
  &--placeholder {
139
139
  background-clip: padding-box;
140
- background-color: var(--ons-color-borders-document-image);
140
+ background-color: var(--ons-color-placeholder);
141
141
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='%23fff' d='M0 19.39c.49-1 1-2 1.55-2.93A31.59 31.59 0 0 1 0 11.72v7.67ZM3 0S0 0 0 3.7v2a34.85 34.85 0 0 0 2.17 9.76A31.2 31.2 0 0 1 8.3 8.3c4.84-4.16 11.36-7 20.21-8.29Zm28.84 2c-10.11 1-17 3.86-22 8.1a29.78 29.78 0 0 0-6.49 8C7.26 25.65 14.66 31.19 27 32h1.21A3.71 3.71 0 0 0 32 27.91V2a.41.41 0 0 1-.16 0Zm-26 21.49a25.94 25.94 0 0 1-3-4.4A48 48 0 0 0 0 25.71V32h20.23a26.41 26.41 0 0 1-14.39-8.49Z'/%3e%3c/svg%3e");
142
142
  background-position: center;
143
143
  background-repeat: no-repeat;