@ons/design-system 64.0.0 → 65.1.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/_macro.njk +2 -2
- package/components/access-code/_macro.spec.js +2 -2
- package/components/access-code/access-code.dom.js +11 -0
- package/components/access-code/{uac.js → access-code.js} +1 -1
- package/components/access-code/{uac.scss → access-code.scss} +1 -1
- package/components/access-code/example-access-code-error.njk +6 -6
- package/components/access-code/example-access-code.njk +4 -4
- package/components/accordion/_macro.njk +2 -2
- package/components/accordion/_macro.spec.js +3 -3
- package/components/accordion/accordion.dom.js +1 -1
- package/components/accordion/accordion.js +1 -1
- 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 +11 -6
- package/components/autosuggest/_macro.njk +32 -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/breadcrumbs/_breadcrumbs.scss +6 -6
- package/components/breadcrumbs/_macro.njk +4 -4
- package/components/breadcrumbs/_macro.spec.js +13 -13
- package/components/button/_button.scss +27 -27
- package/components/button/_macro.spec.js +2 -2
- package/components/call-to-action/_macro.njk +1 -1
- package/components/card/_card.scss +14 -0
- package/components/card/_macro.njk +7 -8
- 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/date-input/_macro.njk +3 -3
- package/components/date-input/_macro.spec.js +118 -0
- package/components/date-input/example-date-input-error-for-single-field.njk +63 -0
- package/components/details/_details.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/external-link/_external-link.scss +3 -3
- package/components/external-link/_macro.njk +1 -1
- package/components/fieldset/_fieldset.scss +1 -1
- package/components/footer/_footer.scss +2 -2
- package/components/footer/example-footer-with-alternative-organisation.njk +5 -5
- package/components/header/_header.scss +8 -8
- 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/icon/_icon.scss +1 -1
- package/components/icon/_macro.njk +35 -35
- package/components/icon/_macro.spec.js +1 -1
- package/components/image/_image.scss +2 -2
- package/components/image/_macro.njk +4 -6
- package/components/image/_macro.spec.js +10 -10
- package/components/list/_list.scss +5 -2
- package/components/list/_macro.njk +22 -10
- package/components/list/_macro.spec.js +42 -0
- package/components/mutually-exclusive/_macro.njk +4 -3
- package/components/navigation/_macro.njk +6 -6
- package/components/navigation/_macro.spec.js +4 -4
- package/components/pagination/_macro.njk +17 -2
- package/components/pagination/_pagination.scss +14 -0
- package/components/pagination/example-pagination-first.njk +0 -2
- package/components/pagination/example-pagination-last.njk +0 -2
- package/components/pagination/example-pagination-with-no-range-indicator.njk +0 -2
- package/components/pagination/example-pagination.njk +0 -2
- package/components/panel/_macro.njk +1 -1
- package/components/panel/_panel.scss +7 -7
- package/components/password/_macro.njk +1 -1
- package/components/password/example-password.njk +1 -2
- package/components/question/example-question-interviewer-note.njk +1 -1
- package/components/quote/_quote.scss +1 -1
- package/components/radios/_macro.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/skip-to-content/_macro.njk +2 -1
- package/components/skip-to-content/_macro.spec.js +17 -3
- package/components/skip-to-content/_skip.scss +1 -1
- package/components/skip-to-content/skip-to-content.dom.js +1 -1
- package/components/skip-to-content/skip-to-content.spec.js +3 -3
- package/components/summary/_summary.scss +1 -1
- package/components/table/_table.scss +6 -6
- package/components/table/sortable-table.js +1 -1
- 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/components/timeline/_macro.njk +18 -22
- package/components/timeline/_macro.spec.js +18 -0
- package/components/video/example-video.njk +1 -1
- package/components/video/video.js +10 -1
- package/components/video/video.spec.js +33 -0
- package/css/main.css +3 -3
- package/css/print.css +1 -1
- package/js/cookies-settings.js +1 -1
- package/js/main.js +1 -1
- package/package.json +19 -21
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +1 -1
- package/scss/base/_global.scss +1 -1
- package/scss/main.scss +1 -1
- package/scss/objects/_spacing.scss +3 -3
- package/scss/overrides/hcm.scss +10 -10
- package/scss/overrides/rtl.scss +2 -2
- package/scss/print.scss +2 -2
- package/components/access-code/uac.dom.js +0 -11
- /package/components/access-code/{uac.spec.js → access-code.spec.js} +0 -0
package/scss/base/_global.scss
CHANGED
|
@@ -61,7 +61,7 @@ a {
|
|
|
61
61
|
color: var(--ons-color-text-link-hover);
|
|
62
62
|
text-decoration: underline solid var(--ons-color-text-link-hover) 2px;
|
|
63
63
|
}
|
|
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-
|
|
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
65
|
@extend %a-focus;
|
|
66
66
|
}
|
|
67
67
|
}
|
package/scss/main.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@import 'helpers/index';
|
|
4
4
|
@import 'base/index';
|
|
5
5
|
@import 'objects/index';
|
|
6
|
-
@import '../components/access-code/
|
|
6
|
+
@import '../components/access-code/access-code';
|
|
7
7
|
@import '../components/address-output/address-output';
|
|
8
8
|
@import '../components/autosuggest/autosuggest';
|
|
9
9
|
@import '../components/breadcrumbs/breadcrumbs';
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
.ons-field-group +,
|
|
3
3
|
.ons-fieldset +,
|
|
4
4
|
.ons-input-items +,
|
|
5
|
-
.ons-
|
|
5
|
+
.ons-image +,
|
|
6
6
|
.ons-panel +,
|
|
7
7
|
.ons-summary__group +,
|
|
8
8
|
.ons-details:not(.ons-details--accordion) + {
|
|
9
|
-
.ons-
|
|
9
|
+
.ons-image,
|
|
10
10
|
.ons-panel,
|
|
11
11
|
.ons-field,
|
|
12
12
|
.ons-field-group,
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.ons-
|
|
20
|
+
.ons-breadcrumbs + .ons-grid {
|
|
21
21
|
margin-top: -1rem;
|
|
22
22
|
}
|
package/scss/overrides/hcm.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Brightness makes all images black, except transparent parts, which remain transparent
|
|
4
4
|
// Then, invert(1) makes the black parts white
|
|
5
5
|
.ons-footer__ogl-img,
|
|
6
|
-
.ons-quote .ons-
|
|
6
|
+
.ons-quote .ons-icon,
|
|
7
7
|
.ons-footer img {
|
|
8
8
|
filter: brightness(0) invert(1);
|
|
9
9
|
}
|
|
@@ -15,17 +15,17 @@
|
|
|
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;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
// Select - Overrides custom background image icon
|
|
37
37
|
.ons-input--select {
|
|
38
38
|
background: var(--ons-color-input-bg)
|
|
39
|
-
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='ons-
|
|
39
|
+
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='ons-icon' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M1.5.3 6 5.4 10.5.3c.2-.2.4-.2.6 0l.7.7c.1.2.1.4 0 .5L6.3 7.7c-.2.2-.4.2-.6 0L.2 1.6C.1 1.4.1 1.2.2 1L.9.3c.2-.1.4-.1.6 0z'/%3E%3C/svg%3E")
|
|
40
40
|
no-repeat center right 10px;
|
|
41
41
|
background-size: 1rem;
|
|
42
42
|
}
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
|
|
49
49
|
// Element icons – matches icon with the link colour
|
|
50
50
|
.ons-details,
|
|
51
|
-
.ons-
|
|
51
|
+
.ons-breadcrumbs__item,
|
|
52
52
|
.ons-panel,
|
|
53
53
|
.ons-btn__inner,
|
|
54
54
|
.ons-external-link,
|
|
55
55
|
.ons-list--icons {
|
|
56
|
-
& .ons-
|
|
56
|
+
& .ons-icon {
|
|
57
57
|
fill: currentColor !important;
|
|
58
58
|
forced-color-adjust: auto;
|
|
59
59
|
}
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
.ons-header__org-logo,
|
|
64
64
|
.ons-header__title-logo,
|
|
65
65
|
.ons-footer {
|
|
66
|
-
& .ons-
|
|
66
|
+
& .ons-icon--logo {
|
|
67
67
|
fill: currentColor !important;
|
|
68
68
|
forced-color-adjust: auto;
|
|
69
69
|
}
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
// Add borders to separate banners with no backgrounds
|
|
118
|
-
.ons-skip-
|
|
118
|
+
.ons-skip-to-content,
|
|
119
119
|
.ons-browser-banner,
|
|
120
120
|
.ons-cookies-banner,
|
|
121
121
|
.ons-header,
|
package/scss/overrides/rtl.scss
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
// Buttons
|
|
65
65
|
.ons-btn {
|
|
66
|
-
.ons-
|
|
66
|
+
.ons-icon {
|
|
67
67
|
margin: 0 0.5rem 0.1rem 0;
|
|
68
68
|
transform: rotate(180deg);
|
|
69
69
|
}
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
margin: 0 2rem 0 0;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
.ons-
|
|
86
|
+
.ons-icon {
|
|
87
87
|
transform: rotate(180deg);
|
|
88
88
|
}
|
|
89
89
|
}
|
package/scss/print.scss
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.ons-footer,
|
|
5
5
|
.ons-cookies-banner,
|
|
6
6
|
.ons-language-links,
|
|
7
|
-
.ons-
|
|
7
|
+
.ons-breadcrumbs,
|
|
8
8
|
.ons-u-ph {
|
|
9
9
|
display: none !important;
|
|
10
10
|
}
|
|
@@ -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 {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import domready from '../../js/domready';
|
|
2
|
-
|
|
3
|
-
domready(async () => {
|
|
4
|
-
const uacInputs = [...document.querySelectorAll('.ons-js-uac')];
|
|
5
|
-
|
|
6
|
-
if (uacInputs.length) {
|
|
7
|
-
const UAC = (await import('./uac')).default;
|
|
8
|
-
|
|
9
|
-
uacInputs.forEach(element => new UAC(element));
|
|
10
|
-
}
|
|
11
|
-
});
|
|
File without changes
|