@ons/design-system 70.0.10 → 70.0.12

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 (42) hide show
  1. package/README.md +36 -0
  2. package/components/address-output/example-address-output.njk +11 -0
  3. package/components/card/_macro.njk +1 -1
  4. package/components/document-list/{document-list.scss → _document-list.scss} +4 -4
  5. package/components/header/_macro.spec.js +513 -721
  6. package/components/header/_test_examples.js +157 -0
  7. package/components/hero/_macro.njk +1 -1
  8. package/components/input/_macro.njk +1 -1
  9. package/components/label/_label.scss +1 -1
  10. package/components/list/_list.scss +20 -11
  11. package/components/list/_macro.njk +11 -6
  12. package/components/list/_macro.spec.js +29 -6
  13. package/components/list/example-bare-list.njk +21 -0
  14. package/components/list/example-bulleted-list.njk +17 -0
  15. package/components/list/example-dashed-list.njk +20 -0
  16. package/components/list/example-inline-list-with-social-icon-prefix.njk +42 -0
  17. package/components/list/example-inline-list.njk +20 -0
  18. package/components/list/example-list-with-icon-prefix.njk +18 -0
  19. package/components/list/example-list-with-icon-suffix.njk +18 -0
  20. package/components/list/example-nested-list.njk +39 -0
  21. package/components/list/example-numbered-list.njk +17 -0
  22. package/components/list/example-prefixed-list.njk +19 -0
  23. package/components/list/example-suffixed-list.njk +19 -0
  24. package/components/list/example-summary-list.njk +17 -0
  25. package/components/navigation/_macro.njk +1 -1
  26. package/components/navigation/_macro.spec.js +1 -1
  27. package/components/quote/example-quote.njk +7 -0
  28. package/components/related-content/example-related-content-social-media.njk +0 -1
  29. package/components/summary/_macro.njk +1 -1
  30. package/components/text-indent/example-text-indent.njk +6 -0
  31. package/css/main.css +1 -1
  32. package/img/large/placeholder-card.png +0 -0
  33. package/img/small/placeholder-card.png +0 -0
  34. package/layout/_dsTemplate.njk +1 -1
  35. package/package.json +1 -1
  36. package/scss/main.scss +1 -1
  37. package/scss/utilities/_index.scss +1 -1
  38. package/scss/utilities/{_pad.scss → _padding.scss} +6 -6
  39. package/scss/vars/_colors.scss +1 -2
  40. package/components/back-link/example-back-link.njk +0 -17
  41. package/components/helpers/_grid.scss +0 -6
  42. package/components/helpers/grid.njk +0 -20
@@ -135,7 +135,7 @@
135
135
 
136
136
  {% if group.summaryLink %}
137
137
  <div
138
- class="ons-summary__link{{ ' ons-u-pt-s' if group.placeholderText or group.rows }}{{ ' ons-u-bt' if group.placeholderText is not defined and group.rows | length > 1 and params.variant != 'card' }}{{ ' ons-u-mb-xl' if not group.last }}"
138
+ class="ons-summary__link{{ ' ons-u-pt-s' if params.variant != 'card' and (group.placeholderText or group.rows) }}{{ ' ons-u-bt' if group.placeholderText is not defined and group.rows | length > 1 and params.variant != 'card' }}{{ ' ons-u-mb-xl' if not group.last }}"
139
139
  >
140
140
  {% set link %}
141
141
  <a
@@ -0,0 +1,6 @@
1
+ {% from "components/text-indent/_macro.njk" import onsTextIndent %}
2
+ {{-
3
+ onsTextIndent({
4
+ text: '<p>Telephone: 0800 141 2021<br>Monday to Friday, 8 am to 7pm<br>Saturday, 8am to 4pm</p>'
5
+ })
6
+ -}}