@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.
- package/components/button/_button.scss +20 -6
- package/components/button/_macro.njk +1 -1
- package/components/button/_macro.spec.js +2 -2
- package/components/checkboxes/_checkbox.scss +43 -10
- package/components/collapsible/_collapsible.scss +2 -1
- package/components/document-list/document-list.scss +2 -0
- package/components/download-resources/download-resources.js +19 -0
- package/components/download-resources/download-resources.spec.js +95 -0
- package/components/external-link/_macro.njk +1 -1
- package/components/external-link/_macro.spec.js +2 -2
- package/components/fieldset/_fieldset.scss +11 -1
- package/components/fieldset/_macro.njk +9 -8
- package/components/fieldset/_macro.spec.js +27 -5
- package/components/footer/_footer.scss +1 -0
- package/components/header/_macro.njk +2 -5
- package/components/header/_macro.spec.js +0 -16
- package/components/hero/_macro.njk +1 -1
- package/components/hero/_macro.spec.js +1 -1
- package/components/icons/_macro.njk +1 -1
- package/components/input/_input-type.scss +3 -0
- package/components/input/_input.scss +13 -2
- package/components/label/_label.scss +1 -1
- package/components/label/_macro.njk +27 -15
- package/components/label/_macro.spec.js +31 -0
- package/components/lists/_macro.njk +1 -1
- package/components/lists/_macro.spec.js +2 -2
- package/components/message/_message.scss +1 -0
- package/components/modal/_macro.njk +2 -2
- package/components/modal/_modal.scss +10 -9
- package/components/navigation/_macro.njk +0 -1
- package/components/navigation/_macro.spec.js +0 -1
- package/components/pagination/_pagination.scss +1 -0
- package/components/panel/_macro.njk +6 -7
- package/components/panel/_macro.spec.js +23 -20
- package/components/panel/_panel.scss +13 -5
- package/components/phase-banner/_phase-banner.scss +1 -0
- package/components/radios/_radio.scss +15 -3
- package/components/reply/_macro.njk +2 -2
- package/components/skip-to-content/_skip.scss +2 -1
- package/components/table/_macro.njk +3 -2
- package/components/table/_macro.spec.js +0 -27
- package/components/table/_table.scss +13 -6
- package/components/table/sortable-table.js +1 -0
- package/components/tabs/_tabs.scss +5 -3
- package/css/census.css +1 -1
- package/css/ids.css +1 -1
- package/css/main.css +1 -1
- package/layout/_template.njk +8 -8
- package/package.json +1 -1
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +1 -1
- package/scss/base/_global.scss +1 -0
- package/scss/overrides/hcm.scss +205 -46
- 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-
|
|
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-
|
|
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:
|
|
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-
|
|
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
|
-
|
|
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:
|
|
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
|
}
|