@ons/design-system 73.0.2 → 73.0.4
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 +3 -1
- package/components/accordion/_macro.njk +2 -0
- package/components/accordion/_macro.spec.js +39 -0
- package/components/accordion/accordion.js +2 -0
- package/components/accordion/example-accordion.njk +6 -1
- package/components/back-to-top/example-full-page-back-to-top.njk +2 -2
- package/components/button/example-button-new-window.njk +1 -0
- package/components/chart/chart-constants.js +2 -1
- package/components/chart/chart.js +2 -0
- package/components/chart/example-area-chart-with-axis-min-and-max-values.njk +1 -1
- package/components/chart/example-clustered-column-chart.njk +1 -1
- package/components/chart/example-line-chart-with-annotations.njk +1 -1
- package/components/chart/example-line-chart-with-axis-min-and-max-values.njk +1 -1
- package/components/chart/example-line-chart-with-custom-reference-line-value.njk +1 -1
- package/components/chart/example-line-chart-with-markers.njk +1 -37
- package/components/chart/example-line-chart-with-range-annotations-inside.njk +1 -1
- package/components/chart/example-line-chart-with-range-annotations-outside-left-right.njk +1 -1
- package/components/chart/example-line-chart-with-range-annotations-outside-top-bottom.njk +1 -1
- package/components/chart/example-line-chart-with-reference-line-annotations.njk +1 -1
- package/components/chart/example-line-chart.njk +1 -1
- package/components/chart/example-scatter-chart-with-axis-min-and-max-values.njk +1 -1
- package/components/chart/example-scatter-chart.njk +1 -1
- package/components/chart/example-stacked-column-chart.njk +26 -37
- package/components/chart/specific-chart-options.js +16 -1
- package/components/cookies-banner/_macro.njk +1 -3
- package/components/featured-article/example-featured-article-with-chart.njk +1 -1
- package/components/icon/_macro.njk +12 -3
- package/components/icon/_macro.spec.js +2 -2
- package/components/image/_image.scss +2 -1
- package/components/list/example-inline-list-with-social-icon-prefix.njk +2 -2
- package/components/pagination/_macro.njk +7 -6
- package/components/pagination/_macro.spec.js +44 -44
- package/components/panel/_macro.njk +8 -2
- package/components/panel/_macro.spec.js +24 -2
- package/components/panel/_panel.scss +2 -0
- package/components/panel/example-panel-with-pending.njk +9 -0
- package/components/radios/_macro.njk +2 -1
- package/components/radios/_macro.spec.js +36 -0
- package/components/related-content/example-related-content-social-media.njk +2 -2
- package/components/share-page/_macro.njk +6 -6
- package/components/share-page/_macro.spec.js +9 -9
- package/components/share-page/example-share-page.njk +1 -1
- package/components/table/_macro.njk +4 -19
- package/css/main.css +1 -1
- package/layout/_template.njk +9 -9
- package/package.json +1 -1
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +1 -1
- /package/favicons/{twitter.png → x.png} +0 -0
package/layout/_template.njk
CHANGED
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
{# Page columns #}
|
|
47
47
|
{% set pageColNumber = pageConfig.pageColNumber | default("12") %}
|
|
48
48
|
{%
|
|
49
|
-
set pageColClasses = pageConfig.pageColClasses if pageConfig.pageColClasses else
|
|
49
|
+
set pageColClasses = ' ' + pageConfig.pageColClasses if pageConfig.pageColClasses else
|
|
50
50
|
''
|
|
51
51
|
%}
|
|
52
52
|
{%
|
|
53
|
-
set
|
|
53
|
+
set mainColClasses = ' ' + pageConfig.mainColClasses if pageConfig.mainColClasses else
|
|
54
54
|
''
|
|
55
55
|
%}
|
|
56
56
|
{%
|
|
@@ -103,16 +103,16 @@
|
|
|
103
103
|
|
|
104
104
|
{% if pageConfig.social %}
|
|
105
105
|
{%
|
|
106
|
-
set
|
|
107
|
-
assetsUrl + '/favicons/
|
|
106
|
+
set xImagePath = pageConfig.social.xImage if pageConfig.social.xImage else
|
|
107
|
+
assetsUrl + '/favicons/x.png'
|
|
108
108
|
%}
|
|
109
|
-
<!--
|
|
109
|
+
<!-- X -->
|
|
110
110
|
<meta name="twitter:card" content="summary" />
|
|
111
|
-
<meta name="twitter:site" content="{{ pageConfig.social.
|
|
111
|
+
<meta name="twitter:site" content="{{ pageConfig.social.xSite }}" />
|
|
112
112
|
<meta name="twitter:url" content="{{ pageConfig.meta.canonicalUrl | default(pageConfig.absoluteUrl) }}" />
|
|
113
113
|
<meta name="twitter:title" content="{{ pageConfig.social.title | default(pageConfig.title) }}" />
|
|
114
114
|
<meta name="twitter:description" content="{{ pageConfig.social.description | default(pageConfig.description) }}" />
|
|
115
|
-
<meta name="twitter:image" content="{{
|
|
115
|
+
<meta name="twitter:image" content="{{ xImagePath }}" />
|
|
116
116
|
{% endif %}
|
|
117
117
|
{% endblock %}
|
|
118
118
|
|
|
@@ -202,8 +202,8 @@
|
|
|
202
202
|
{% endif %}
|
|
203
203
|
{% endblock %}
|
|
204
204
|
<div class="ons-grid">
|
|
205
|
-
<div class="ons-grid__col ons-col-{{ pageColNumber }}@m
|
|
206
|
-
<main id="main-content" class="ons-page__main
|
|
205
|
+
<div class="ons-grid__col ons-col-{{ pageColNumber }}@m{{ pageColClasses }}">
|
|
206
|
+
<main id="main-content" class="ons-page__main{{ mainColClasses }}">
|
|
207
207
|
{% block main %}{% endblock %}
|
|
208
208
|
</main>
|
|
209
209
|
</div>
|