@ons/design-system 70.0.9 → 70.0.11
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/address-output/example-address-output.njk +11 -0
- package/components/document-list/{document-list.scss → _document-list.scss} +4 -4
- package/components/header/_macro.spec.js +513 -721
- package/components/header/_test_examples.js +157 -0
- package/components/label/_label.scss +1 -1
- package/components/list/_list.scss +14 -11
- package/components/list/_macro.njk +3 -3
- package/components/list/_macro.spec.js +3 -6
- package/components/list/example-bare-list.njk +21 -0
- package/components/list/example-bulleted-list.njk +17 -0
- package/components/list/example-dashed-list.njk +20 -0
- package/components/list/example-inline-list-with-social-icon-prefix.njk +42 -0
- package/components/list/example-inline-list.njk +20 -0
- package/components/list/example-list-with-icon-prefix.njk +18 -0
- package/components/list/example-list-with-icon-suffix.njk +18 -0
- package/components/list/example-nested-list.njk +39 -0
- package/components/list/example-numbered-list.njk +17 -0
- package/components/list/example-prefixed-list.njk +19 -0
- package/components/list/example-suffixed-list.njk +19 -0
- package/components/list/example-summary-list.njk +17 -0
- package/components/navigation/_macro.njk +1 -1
- package/components/navigation/_macro.spec.js +1 -1
- package/components/quote/example-quote.njk +7 -0
- package/components/related-content/example-related-content-social-media.njk +0 -1
- package/components/section-navigation/_macro.njk +1 -1
- package/components/section-navigation/example-section-navigation-single-vertical-with-title.njk +23 -0
- package/components/summary/_macro.njk +1 -1
- package/components/text-indent/example-text-indent.njk +6 -0
- package/css/main.css +1 -1
- package/img/large/placeholder-card.png +0 -0
- package/img/small/placeholder-card.png +0 -0
- package/layout/_dsTemplate.njk +1 -1
- package/package.json +1 -1
- package/scss/main.scss +1 -1
- package/scss/utilities/_index.scss +1 -1
- package/scss/utilities/{_pad.scss → _padding.scss} +6 -6
- package/scss/vars/_colors.scss +1 -2
- package/components/back-link/example-back-link.njk +0 -17
- package/components/helpers/_grid.scss +0 -6
- package/components/helpers/grid.njk +0 -20
|
Binary file
|
|
Binary file
|
package/layout/_dsTemplate.njk
CHANGED
package/package.json
CHANGED
package/scss/main.scss
CHANGED
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
@import '../components/fieldset/fieldset';
|
|
28
28
|
@import '../components/footer/footer';
|
|
29
29
|
@import '../components/header/header';
|
|
30
|
-
@import '../components/helpers/grid';
|
|
31
30
|
@import '../components/hero/hero';
|
|
32
31
|
@import '../components/icon/icon';
|
|
33
32
|
@import '../components/image/image';
|
|
@@ -60,6 +59,7 @@
|
|
|
60
59
|
@import '../components/timeline/timeline';
|
|
61
60
|
@import '../components/upload/upload';
|
|
62
61
|
@import '../components/video/video';
|
|
62
|
+
@import '../foundations/grid/grid';
|
|
63
63
|
@import 'utilities/index';
|
|
64
64
|
@import 'utilities/highlight';
|
|
65
65
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// e.g ons-u-pl-m
|
|
2
1
|
$sizes: (
|
|
3
|
-
no: 0
|
|
4
|
-
xxs: 0.
|
|
2
|
+
no: 0,
|
|
3
|
+
xxs: 0.25rem,
|
|
5
4
|
xs: 0.5rem,
|
|
6
5
|
s: 1rem,
|
|
7
|
-
m:
|
|
8
|
-
l:
|
|
6
|
+
m: 1.5rem,
|
|
7
|
+
l: 2rem,
|
|
8
|
+
xl: 3rem,
|
|
9
9
|
);
|
|
10
10
|
|
|
11
11
|
$padding: (
|
|
@@ -19,7 +19,7 @@ $padding: (
|
|
|
19
19
|
@each $key, $value in $sizes {
|
|
20
20
|
@each $abbr, $dec in $padding {
|
|
21
21
|
@include bp-suffix(ons-u-#{$abbr}-#{$key}, $create-between-breakpoints: true) {
|
|
22
|
-
#{$dec}: #{$value};
|
|
22
|
+
#{$dec}: #{$value} !important;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
package/scss/vars/_colors.scss
CHANGED
|
@@ -102,8 +102,7 @@
|
|
|
102
102
|
--ons-color-borders-document-image-focus: var(--ons-color-black);
|
|
103
103
|
|
|
104
104
|
// Placeholders
|
|
105
|
-
--ons-color-
|
|
106
|
-
--ons-color-image-placeholder: var(--ons-color-grey-15);
|
|
105
|
+
--ons-color-placeholder: var(--ons-color-grey-75);
|
|
107
106
|
|
|
108
107
|
// Form elements
|
|
109
108
|
--ons-color-button: var(--ons-color-leaf-green);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{% from "components/breadcrumbs/_macro.njk" import onsBreadcrumbs %}
|
|
2
|
-
|
|
3
|
-
{{
|
|
4
|
-
onsBreadcrumbs({
|
|
5
|
-
"ariaLabel": 'Back',
|
|
6
|
-
"itemsList": [
|
|
7
|
-
{
|
|
8
|
-
"url": '/',
|
|
9
|
-
"id": "backlink",
|
|
10
|
-
"text": 'Back',
|
|
11
|
-
"attributes": {
|
|
12
|
-
"data-attribute": "Example attribute"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
})
|
|
17
|
-
}}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{% macro dsExampleGrid(params) %}
|
|
2
|
-
|
|
3
|
-
{% set grid %}
|
|
4
|
-
<div class="ons-grid">
|
|
5
|
-
{%- for item in (params.itemsList if params.itemsList is iterable else params.itemsList.items()) -%}
|
|
6
|
-
{%- for i in range(0, item.repeat | default(1) ) -%}
|
|
7
|
-
<div class="ons-grid__col ons-col-{{ item.col }}@m {{ item.classes }}">
|
|
8
|
-
<div class="ons-pl-grid-col">{{ item.col }} col</div>
|
|
9
|
-
</div>
|
|
10
|
-
{%- endfor -%}
|
|
11
|
-
{%- endfor -%}
|
|
12
|
-
</div>
|
|
13
|
-
{% endset %}
|
|
14
|
-
|
|
15
|
-
{%- if params.container -%}
|
|
16
|
-
<div class="ons-container">{{ grid | safe }}</div>
|
|
17
|
-
{% else %}
|
|
18
|
-
{{ grid | safe }}
|
|
19
|
-
{%- endif -%}
|
|
20
|
-
{% endmacro %}
|