@ons/design-system 65.1.0 → 65.2.1
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/README.md +1 -0
- package/components/access-code/access-code.scss +3 -3
- package/components/access-code/example-access-code-error.njk +1 -1
- package/components/access-code/example-access-code.njk +1 -1
- package/components/accordion/example-accordion-open.njk +10 -10
- package/components/accordion/example-accordion.njk +1 -1
- package/components/address-input/example-address-input-editable.njk +2 -2
- package/components/address-input/example-address-input-manual.njk +3 -3
- package/components/address-input/example-address-input.njk +2 -2
- package/components/autosuggest/_autosuggest.scss +3 -8
- package/components/autosuggest/_macro.njk +2 -3
- package/components/autosuggest/autosuggest.js +2 -1
- package/components/autosuggest/autosuggest.spec.js +89 -55
- package/components/autosuggest/autosuggest.ui.js +8 -12
- package/components/autosuggest/example-autosuggest-country-multiple.njk +4 -3
- package/components/autosuggest/example-autosuggest-country.njk +1 -1
- package/components/back-link/example-back-link.njk +1 -1
- package/components/button/_button.scss +11 -14
- package/components/card/example-card-set-with-images.njk +3 -3
- package/components/card/example-card-set-with-lists.njk +3 -3
- package/components/card/example-card-set.njk +3 -3
- package/components/card/example-card.njk +1 -1
- package/components/checkboxes/_checkbox.scss +1 -4
- package/components/checkboxes/example-checkboxes-disabled.njk +3 -3
- package/components/checkboxes/example-checkboxes-error.njk +7 -7
- package/components/checkboxes/example-checkboxes-with-descriptions.njk +7 -7
- package/components/checkboxes/example-checkboxes-with-hidden-label.njk +9 -9
- package/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk +8 -8
- package/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk +8 -8
- package/components/checkboxes/example-checkboxes-with-revealed-radios-expanded.njk +8 -8
- package/components/checkboxes/example-checkboxes-with-revealed-radios.njk +8 -8
- package/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk +4 -4
- package/components/checkboxes/example-checkboxes-with-revealed-select.njk +4 -4
- package/components/checkboxes/example-checkboxes-with-revealed-text-input-expanded.njk +6 -6
- package/components/checkboxes/example-checkboxes-with-revealed-text-input.njk +6 -6
- package/components/checkboxes/example-checkboxes-with-select-all-button.njk +4 -4
- package/components/checkboxes/example-checkboxes-with-visible-text-input.njk +6 -6
- package/components/checkboxes/example-checkboxes-without-border.njk +3 -3
- package/components/checkboxes/example-checkboxes.njk +4 -4
- package/components/date-input/example-date-input-error.njk +2 -2
- package/components/date-input/example-date-input.njk +1 -1
- package/components/details/example-details-with-warning.njk +1 -1
- package/components/details/example-details.njk +1 -1
- package/components/download-resources/_download-resources.scss +3 -5
- package/components/duration/example-duration-error.njk +6 -6
- package/components/duration/example-duration.njk +5 -5
- package/components/external-link/example-external-link.njk +1 -1
- package/components/header/example-header-external-with-service-links.njk +1 -1
- package/components/header/example-header-internal.njk +1 -1
- package/components/helpers/_grid.scss +6 -0
- package/components/helpers/grid.njk +19 -0
- package/components/input/_input-type.scss +2 -8
- package/components/input/_input.scss +4 -3
- package/components/input/example-input-email.njk +1 -1
- package/components/input/example-input-number.njk +1 -1
- package/components/input/example-input-numeric-values.njk +7 -7
- package/components/input/example-input-text-with-character-limit-checker.njk +1 -1
- package/components/input/example-input-text-with-description.njk +1 -1
- package/components/input/example-input-text.njk +1 -1
- package/components/modal/_modal.scss +3 -6
- package/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk +6 -6
- package/components/mutually-exclusive/example-mutually-exclusive-date-with-error.njk +2 -2
- package/components/mutually-exclusive/example-mutually-exclusive-email.njk +2 -2
- package/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk +5 -5
- package/components/navigation/navigation.js +6 -2
- package/components/phase-banner/example-phase-banner-alpha.njk +13 -2
- package/components/phase-banner/example-phase-banner-beta.njk +13 -2
- package/components/radios/example-radios-with-clear-button-expanded.njk +9 -9
- package/components/radios/example-radios-with-clear-button.njk +9 -9
- package/components/radios/example-radios-with-descriptions.njk +5 -5
- package/components/radios/example-radios-with-error.njk +4 -4
- package/components/radios/example-radios-with-revealed-checkboxes-expanded.njk +8 -8
- package/components/radios/example-radios-with-revealed-checkboxes.njk +8 -8
- package/components/radios/example-radios-with-revealed-radios-expanded.njk +9 -9
- package/components/radios/example-radios-with-revealed-radios.njk +8 -8
- package/components/radios/example-radios-with-revealed-select-expanded.njk +5 -5
- package/components/radios/example-radios-with-revealed-select.njk +4 -4
- package/components/radios/example-radios-with-revealed-text-input-expanded.njk +9 -9
- package/components/radios/example-radios-with-revealed-text-input.njk +9 -9
- package/components/radios/example-radios-with-visible-text-input.njk +3 -3
- package/components/relationships/example-relationships-error.njk +13 -13
- package/components/relationships/example-relationships-you.njk +13 -13
- package/components/relationships/example-relationships.njk +13 -13
- package/components/select/example-select-with-error.njk +1 -1
- package/components/select/example-select-with-inline-label.njk +1 -1
- package/components/select/example-select.njk +1 -1
- package/components/table/_table.scss +7 -3
- package/components/textarea/example-textarea-error.njk +1 -1
- package/components/upload/example-upload-error.njk +1 -1
- package/components/upload/example-upload.njk +1 -1
- package/css/main.css +3 -3
- package/package.json +8 -10
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +1 -1
- package/scss/base/_global.scss +3 -2
- package/scss/main.scss +1 -0
- package/scss/overrides/hcm.scss +10 -10
package/scss/base/_global.scss
CHANGED
|
@@ -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),
|
|
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
|
|
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';
|
package/scss/overrides/hcm.scss
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
// Panels – add border to replace backgrounds
|
|
12
12
|
.ons-panel {
|
|
13
|
-
border-color:
|
|
13
|
+
border-color: currentcolor;
|
|
14
14
|
border-left-width: 8px !important;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -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
|
|
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:
|
|
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:
|
|
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
|
|
125
|
+
border-bottom: 1px solid currentcolor;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
.ons-footer {
|
|
129
|
-
border-top: 1px solid
|
|
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
|
|
134
|
+
border-bottom: 1px solid currentcolor;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.ons-navigation--sub {
|
|
139
|
-
border-top: 1px solid
|
|
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
|
|
178
|
-
&:checked:not(:disabled
|
|
177
|
+
&:checked:not(:disabled, :visited),
|
|
178
|
+
&:checked:not(:disabled, :visited)::after {
|
|
179
179
|
border-color: Highlight;
|
|
180
180
|
}
|
|
181
181
|
|