@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.
- package/components/access-code/access-code.scss +3 -3
- package/components/address-input/autosuggest.address.error.js +1 -1
- package/components/address-input/autosuggest.address.js +2 -2
- package/components/address-input/autosuggest.address.spec.js +5 -5
- package/components/autosuggest/_autosuggest.scss +9 -9
- package/components/autosuggest/_macro.njk +30 -31
- package/components/autosuggest/_macro.spec.js +18 -18
- package/components/autosuggest/autosuggest.spec.js +31 -31
- package/components/autosuggest/autosuggest.ui.js +8 -9
- package/components/button/_button.scss +11 -14
- package/components/card/_card.scss +14 -0
- package/components/card/_macro.njk +7 -8
- package/components/checkboxes/_checkbox.scss +1 -4
- package/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk +88 -0
- package/components/checkboxes/example-checkboxes-with-revealed-radios-expanded.njk +70 -0
- package/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk +72 -0
- package/components/checkboxes/example-checkboxes-with-revealed-text-input-expanded.njk +60 -0
- package/components/content-pagination/_content-pagination.scss +1 -1
- package/components/document-list/_macro.njk +5 -7
- package/components/document-list/_macro.spec.js +2 -2
- package/components/document-list/example-document-list-search-result-featured.njk +1 -1
- package/components/document-list/example-document-list-search-results.njk +3 -3
- package/components/download-resources/_download-resources.scss +3 -5
- package/components/external-link/example-external-link.njk +1 -1
- package/components/fieldset/_fieldset.scss +1 -1
- package/components/header/_macro.njk +4 -4
- package/components/header/example-header-external-with-navigation.njk +5 -5
- package/components/header/example-header-external-with-service-links.njk +3 -3
- package/components/header/example-header-external-with-sub-navigation.njk +10 -10
- package/components/header/example-header-internal.njk +2 -2
- package/components/header/example-header-neutral-for-multicoloured-logo.njk +6 -6
- 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/list/_list.scss +5 -2
- package/components/list/_macro.njk +22 -10
- package/components/list/_macro.spec.js +42 -0
- package/components/modal/_modal.scss +3 -6
- package/components/navigation/_macro.njk +6 -6
- package/components/navigation/_macro.spec.js +4 -4
- package/components/navigation/navigation.js +6 -2
- package/components/pagination/_macro.njk +17 -2
- package/components/pagination/_pagination.scss +14 -0
- package/components/phase-banner/example-phase-banner-alpha.njk +13 -2
- package/components/phase-banner/example-phase-banner-beta.njk +13 -2
- package/components/question/example-question-interviewer-note.njk +1 -1
- package/components/radios/example-radios-with-clear-button-expanded.njk +98 -0
- package/components/radios/example-radios-with-revealed-checkboxes-expanded.njk +70 -0
- package/components/radios/example-radios-with-revealed-radios-expanded.njk +69 -0
- package/components/radios/example-radios-with-revealed-select-expanded.njk +70 -0
- package/components/radios/example-radios-with-revealed-text-input-expanded.njk +81 -0
- package/components/relationships/_macro.spec.js +9 -11
- package/components/relationships/example-relationships-error.njk +28 -28
- package/components/relationships/example-relationships-you.njk +29 -29
- package/components/relationships/example-relationships.njk +28 -28
- package/components/relationships/relationships.spec.js +13 -13
- package/components/reply/_macro.njk +5 -2
- package/components/reply/_macro.spec.js +7 -1
- package/components/section-navigation/_macro.njk +2 -1
- package/components/section-navigation/_macro.spec.js +2 -13
- package/components/table/_table.scss +7 -3
- package/components/tabs/_macro.njk +5 -5
- package/components/tabs/_macro.spec.js +1 -1
- package/components/tabs/example-tabs-details.njk +3 -0
- package/components/tabs/example-tabs.njk +0 -1
- package/components/textarea/example-textarea-error.njk +4 -4
- package/css/main.css +3 -3
- package/css/print.css +1 -1
- package/js/cookies-settings.js +1 -1
- package/package.json +27 -30
- 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 +14 -14
- package/scss/print.scss +1 -1
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,22 +10,22 @@
|
|
|
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
|
|
|
17
17
|
// Adds some style adjustments to the focused item to make it obvious something is selected
|
|
18
|
-
.ons-autosuggest
|
|
18
|
+
.ons-autosuggest {
|
|
19
19
|
&__results {
|
|
20
20
|
border: 1px solid Highlight !important;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.ons-
|
|
23
|
+
.ons-autosuggest__option {
|
|
24
24
|
&:focus,
|
|
25
25
|
&:hover,
|
|
26
|
-
&:hover .ons-
|
|
26
|
+
&:hover .ons-autosuggest__category,
|
|
27
27
|
&--focused,
|
|
28
|
-
&--focused .ons-
|
|
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
|
|
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
|
|