@ons/design-system 65.0.0 → 65.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 (77) hide show
  1. package/components/access-code/access-code.scss +3 -3
  2. package/components/address-input/autosuggest.address.error.js +1 -1
  3. package/components/address-input/autosuggest.address.js +2 -2
  4. package/components/address-input/autosuggest.address.spec.js +5 -5
  5. package/components/autosuggest/_autosuggest.scss +9 -9
  6. package/components/autosuggest/_macro.njk +30 -31
  7. package/components/autosuggest/_macro.spec.js +18 -18
  8. package/components/autosuggest/autosuggest.spec.js +31 -31
  9. package/components/autosuggest/autosuggest.ui.js +8 -9
  10. package/components/button/_button.scss +11 -14
  11. package/components/card/_card.scss +14 -0
  12. package/components/card/_macro.njk +7 -8
  13. package/components/checkboxes/_checkbox.scss +1 -4
  14. package/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk +88 -0
  15. package/components/checkboxes/example-checkboxes-with-revealed-radios-expanded.njk +70 -0
  16. package/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk +72 -0
  17. package/components/checkboxes/example-checkboxes-with-revealed-text-input-expanded.njk +60 -0
  18. package/components/content-pagination/_content-pagination.scss +1 -1
  19. package/components/document-list/_macro.njk +5 -7
  20. package/components/document-list/_macro.spec.js +2 -2
  21. package/components/document-list/example-document-list-search-result-featured.njk +1 -1
  22. package/components/document-list/example-document-list-search-results.njk +3 -3
  23. package/components/download-resources/_download-resources.scss +3 -5
  24. package/components/external-link/example-external-link.njk +1 -1
  25. package/components/fieldset/_fieldset.scss +1 -1
  26. package/components/header/_macro.njk +4 -4
  27. package/components/header/example-header-external-with-navigation.njk +5 -5
  28. package/components/header/example-header-external-with-service-links.njk +3 -3
  29. package/components/header/example-header-external-with-sub-navigation.njk +10 -10
  30. package/components/header/example-header-internal.njk +2 -2
  31. package/components/header/example-header-neutral-for-multicoloured-logo.njk +6 -6
  32. package/components/helpers/_grid.scss +6 -0
  33. package/components/helpers/grid.njk +19 -0
  34. package/components/input/_input-type.scss +2 -8
  35. package/components/input/_input.scss +4 -3
  36. package/components/list/_list.scss +5 -2
  37. package/components/list/_macro.njk +22 -10
  38. package/components/list/_macro.spec.js +42 -0
  39. package/components/modal/_modal.scss +3 -6
  40. package/components/navigation/_macro.njk +6 -6
  41. package/components/navigation/_macro.spec.js +4 -4
  42. package/components/navigation/navigation.js +6 -2
  43. package/components/pagination/_macro.njk +17 -2
  44. package/components/pagination/_pagination.scss +14 -0
  45. package/components/phase-banner/example-phase-banner-alpha.njk +13 -2
  46. package/components/phase-banner/example-phase-banner-beta.njk +13 -2
  47. package/components/question/example-question-interviewer-note.njk +1 -1
  48. package/components/radios/example-radios-with-clear-button-expanded.njk +98 -0
  49. package/components/radios/example-radios-with-revealed-checkboxes-expanded.njk +70 -0
  50. package/components/radios/example-radios-with-revealed-radios-expanded.njk +69 -0
  51. package/components/radios/example-radios-with-revealed-select-expanded.njk +70 -0
  52. package/components/radios/example-radios-with-revealed-text-input-expanded.njk +81 -0
  53. package/components/relationships/_macro.spec.js +9 -11
  54. package/components/relationships/example-relationships-error.njk +28 -28
  55. package/components/relationships/example-relationships-you.njk +29 -29
  56. package/components/relationships/example-relationships.njk +28 -28
  57. package/components/relationships/relationships.spec.js +13 -13
  58. package/components/reply/_macro.njk +5 -2
  59. package/components/reply/_macro.spec.js +7 -1
  60. package/components/section-navigation/_macro.njk +2 -1
  61. package/components/section-navigation/_macro.spec.js +2 -13
  62. package/components/table/_table.scss +7 -3
  63. package/components/tabs/_macro.njk +5 -5
  64. package/components/tabs/_macro.spec.js +1 -1
  65. package/components/tabs/example-tabs-details.njk +3 -0
  66. package/components/tabs/example-tabs.njk +0 -1
  67. package/components/textarea/example-textarea-error.njk +4 -4
  68. package/css/main.css +3 -3
  69. package/css/print.css +1 -1
  70. package/js/cookies-settings.js +1 -1
  71. package/package.json +27 -30
  72. package/scripts/main.es5.js +1 -1
  73. package/scripts/main.js +1 -1
  74. package/scss/base/_global.scss +3 -2
  75. package/scss/main.scss +1 -0
  76. package/scss/overrides/hcm.scss +14 -14
  77. package/scss/print.scss +1 -1
@@ -32,7 +32,8 @@ hr {
32
32
  %a-focus {
33
33
  background-color: var(--ons-color-focus);
34
34
  box-decoration-break: clone;
35
- box-shadow: 0 -2px var(--ons-color-focus), 0 4px var(--ons-color-text-link-focus);
35
+ box-shadow: 0 -2px var(--ons-color-focus),
36
+ 0 4px var(--ons-color-text-link-focus);
36
37
  color: var(--ons-color-text-link-focus);
37
38
  outline: 3px solid transparent;
38
39
  outline-offset: 1px;
@@ -61,7 +62,7 @@ a {
61
62
  color: var(--ons-color-text-link-hover);
62
63
  text-decoration: underline solid var(--ons-color-text-link-hover) 2px;
63
64
  }
64
- &:focus:not(.ons-btn--link):not(.ons-btn--ghost):not(.ons-js-clear-btn):not(.ons-download__thumbnail--link):not(.ons-tab--row):not(.ons-skip-to-content) {
65
+ &:focus:not(.ons-btn--link, .ons-btn--ghost, .ons-js-clear-btn, .ons-download__thumbnail--link, .ons-tab--row, .ons-skip-to-content) {
65
66
  @extend %a-focus;
66
67
  }
67
68
  }
package/scss/main.scss CHANGED
@@ -25,6 +25,7 @@
25
25
  @import '../components/fieldset/fieldset';
26
26
  @import '../components/footer/footer';
27
27
  @import '../components/header/header';
28
+ @import '../components/helpers/grid';
28
29
  @import '../components/hero/hero';
29
30
  @import '../components/icon/icon';
30
31
  @import '../components/image/image';
@@ -10,22 +10,22 @@
10
10
 
11
11
  // Panels – add border to replace backgrounds
12
12
  .ons-panel {
13
- border-color: currentColor;
13
+ border-color: currentcolor;
14
14
  border-left-width: 8px !important;
15
15
  }
16
16
 
17
17
  // Adds some style adjustments to the focused item to make it obvious something is selected
18
- .ons-autosuggest-input {
18
+ .ons-autosuggest {
19
19
  &__results {
20
20
  border: 1px solid Highlight !important;
21
21
  }
22
22
 
23
- .ons-autosuggest-input__option {
23
+ .ons-autosuggest__option {
24
24
  &:focus,
25
25
  &:hover,
26
- &:hover .ons-autosuggest-input__category,
26
+ &:hover .ons-autosuggest__category,
27
27
  &--focused,
28
- &--focused .ons-autosuggest-input__category {
28
+ &--focused .ons-autosuggest__category {
29
29
  background: Highlight !important;
30
30
  color: HighlightText !important;
31
31
  forced-color-adjust: none;
@@ -43,7 +43,7 @@
43
43
 
44
44
  // I would have approached the mark differently, but without changing the existing approach this fixes it
45
45
  .ons-timeline__item::before {
46
- border: 2px solid currentColor;
46
+ border: 2px solid currentcolor;
47
47
  }
48
48
 
49
49
  // Element icons – matches icon with the link colour
@@ -54,7 +54,7 @@
54
54
  .ons-external-link,
55
55
  .ons-list--icons {
56
56
  & .ons-icon {
57
- fill: currentColor !important;
57
+ fill: currentcolor !important;
58
58
  forced-color-adjust: auto;
59
59
  }
60
60
  }
@@ -64,7 +64,7 @@
64
64
  .ons-header__title-logo,
65
65
  .ons-footer {
66
66
  & .ons-icon--logo {
67
- fill: currentColor !important;
67
+ fill: currentcolor !important;
68
68
  forced-color-adjust: auto;
69
69
  }
70
70
  }
@@ -122,21 +122,21 @@
122
122
  .ons-header__top,
123
123
  .ons-hero,
124
124
  .ons-phase-banner {
125
- border-bottom: 1px solid currentColor;
125
+ border-bottom: 1px solid currentcolor;
126
126
  }
127
127
 
128
128
  .ons-footer {
129
- border-top: 1px solid currentColor;
129
+ border-top: 1px solid currentcolor;
130
130
  }
131
131
 
132
132
  @include mq(m) {
133
133
  .ons-header__main {
134
- border-bottom: 1px solid currentColor;
134
+ border-bottom: 1px solid currentcolor;
135
135
  }
136
136
  }
137
137
 
138
138
  .ons-navigation--sub {
139
- border-top: 1px solid currentColor;
139
+ border-top: 1px solid currentcolor;
140
140
  }
141
141
 
142
142
  // Search – override focus state background image
@@ -174,8 +174,8 @@
174
174
  }
175
175
  }
176
176
 
177
- &:checked:not(:disabled):not(:visited),
178
- &:checked:not(:disabled):not(:visited)::after {
177
+ &:checked:not(:disabled, :visited),
178
+ &:checked:not(:disabled, :visited)::after {
179
179
  border-color: Highlight;
180
180
  }
181
181
 
package/scss/print.scss CHANGED
@@ -51,7 +51,7 @@ details > summary {
51
51
  }
52
52
 
53
53
  .ons-hero {
54
- color-adjust: exact;
54
+ print-color-adjust: exact;
55
55
  }
56
56
 
57
57
  .ons-grid__col {