@ons/design-system 54.0.1 → 55.0.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 (54) hide show
  1. package/components/button/_button.scss +20 -6
  2. package/components/button/_macro.njk +1 -1
  3. package/components/button/_macro.spec.js +2 -2
  4. package/components/checkboxes/_checkbox.scss +43 -10
  5. package/components/collapsible/_collapsible.scss +2 -1
  6. package/components/document-list/document-list.scss +2 -0
  7. package/components/download-resources/download-resources.js +19 -0
  8. package/components/download-resources/download-resources.spec.js +95 -0
  9. package/components/external-link/_macro.njk +1 -1
  10. package/components/external-link/_macro.spec.js +2 -2
  11. package/components/fieldset/_fieldset.scss +11 -1
  12. package/components/fieldset/_macro.njk +9 -8
  13. package/components/fieldset/_macro.spec.js +27 -5
  14. package/components/footer/_footer.scss +1 -0
  15. package/components/header/_macro.njk +2 -5
  16. package/components/header/_macro.spec.js +0 -16
  17. package/components/hero/_macro.njk +1 -1
  18. package/components/hero/_macro.spec.js +1 -1
  19. package/components/icons/_macro.njk +1 -1
  20. package/components/input/_input-type.scss +3 -0
  21. package/components/input/_input.scss +13 -2
  22. package/components/label/_label.scss +1 -1
  23. package/components/label/_macro.njk +27 -15
  24. package/components/label/_macro.spec.js +31 -0
  25. package/components/lists/_macro.njk +1 -1
  26. package/components/lists/_macro.spec.js +2 -2
  27. package/components/message/_message.scss +1 -0
  28. package/components/modal/_macro.njk +2 -2
  29. package/components/modal/_modal.scss +10 -9
  30. package/components/navigation/_macro.njk +0 -1
  31. package/components/navigation/_macro.spec.js +0 -1
  32. package/components/pagination/_pagination.scss +1 -0
  33. package/components/panel/_macro.njk +6 -7
  34. package/components/panel/_macro.spec.js +23 -20
  35. package/components/panel/_panel.scss +13 -5
  36. package/components/phase-banner/_phase-banner.scss +1 -0
  37. package/components/radios/_radio.scss +15 -3
  38. package/components/reply/_macro.njk +2 -2
  39. package/components/skip-to-content/_skip.scss +2 -1
  40. package/components/table/_macro.njk +3 -2
  41. package/components/table/_macro.spec.js +0 -27
  42. package/components/table/_table.scss +13 -6
  43. package/components/table/sortable-table.js +1 -0
  44. package/components/tabs/_tabs.scss +5 -3
  45. package/css/census.css +1 -1
  46. package/css/ids.css +1 -1
  47. package/css/main.css +1 -1
  48. package/layout/_template.njk +8 -8
  49. package/package.json +1 -1
  50. package/scripts/main.es5.js +1 -1
  51. package/scripts/main.js +1 -1
  52. package/scss/base/_global.scss +1 -0
  53. package/scss/overrides/hcm.scss +205 -46
  54. package/scss/patternlib.scss +1 -0
@@ -4,6 +4,10 @@
4
4
  margin-bottom: 1rem;
5
5
  width: 100%;
6
6
 
7
+ &__head {
8
+ border-bottom: 2px solid $color-grey-75;
9
+ }
10
+
7
11
  &__caption {
8
12
  font-weight: 700;
9
13
  text-align: left;
@@ -13,7 +17,7 @@
13
17
  &__cell {
14
18
  @include nth-element(1, 0);
15
19
 
16
- border-bottom: 2px solid $color-grey-100;
20
+ border-bottom: 2px solid $color-grey-75;
17
21
  overflow: hidden;
18
22
  padding: 0.5rem 0 0.5rem 1rem;
19
23
  text-align: left;
@@ -64,8 +68,12 @@
64
68
  display: none;
65
69
  }
66
70
 
71
+ .ons-table__head {
72
+ border-bottom: none;
73
+ }
74
+
67
75
  .ons-table__body .ons-table__row {
68
- border-bottom: 2px solid $color-grey-100;
76
+ border-bottom: 2px solid $color-grey-75;
69
77
  display: block;
70
78
  margin-bottom: 1rem;
71
79
  }
@@ -108,7 +116,8 @@
108
116
  width: 100%;
109
117
  &:focus {
110
118
  box-shadow: 0 0 0 3px $color-page-light, 0 0 0 5px $color-text-link-focus, 0 0 0 8px $color-focus;
111
- outline: none;
119
+ outline: 3px solid transparent; // Add transparent outline because Windows High Contrast Mode doesn't show box-shadows
120
+ outline-offset: 1px;
112
121
  }
113
122
  .ons-table__header,
114
123
  .ons-table__cell {
@@ -182,8 +191,6 @@
182
191
  }
183
192
 
184
193
  .ons-table__header {
185
- position: relative;
186
-
187
194
  .ons-table__sort-button {
188
195
  background-color: transparent;
189
196
  border: 0;
@@ -205,7 +212,7 @@
205
212
  }
206
213
 
207
214
  .ons-svg-icon {
208
- fill: $color-grey-35;
215
+ fill: $color-grey-75;
209
216
  height: 0.8rem;
210
217
  padding-bottom: 0.1rem;
211
218
  width: 0.8rem;
@@ -28,6 +28,7 @@ export default class TableSort {
28
28
  createHeadingButtons(heading, i) {
29
29
  const text = heading.textContent.trim();
30
30
  heading.childNodes[1].remove();
31
+ heading.childNodes[2].classList.remove('ons-u-d-no');
31
32
  const button = document.createElement('button');
32
33
  button.setAttribute('aria-label', this.table.getAttribute('data-aria-sort') + ' ' + text);
33
34
  button.setAttribute('type', 'button');
@@ -71,7 +71,10 @@
71
71
  inset -17px 0 0 0 $color-button-secondary,
72
72
  inset 0 -13px 0 0 $color-text-link-focus;
73
73
  color: $color-text-link-focus;
74
- outline: none;
74
+
75
+ // Add transparent outline because Windows High Contrast Mode doesn't show box-shadows
76
+ outline: 3px solid transparent;
77
+ outline-offset: 1px;
75
78
  text-decoration: underline solid $color-text 2px;
76
79
  }
77
80
 
@@ -86,7 +89,6 @@
86
89
 
87
90
  &:focus {
88
91
  background-color: $color-focus;
89
- border-bottom: 1px solid $color-page-light;
90
92
  box-shadow: inset 0 0 0 9px $color-page-light,
91
93
  inset 17px 0 0 0 $color-page-light,
92
94
  inset -17px 0 0 0 $color-page-light,
@@ -108,7 +110,7 @@
108
110
 
109
111
  &:focus {
110
112
  box-shadow: 0 0 0 3px $color-page-light, 0 0 0 5px $color-text-link-focus, 0 0 0 8px $color-focus;
111
- outline: none;
113
+ outline: 3px solid transparent; // Add transparent outline because Windows High Contrast Mode doesn't show box-shadows
112
114
  z-index: 1;
113
115
  }
114
116
  }