@ons/design-system 73.10.0-beta.1 → 73.10.0-beta.2

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.
@@ -47,14 +47,14 @@
47
47
  {%
48
48
  call onsFigure({
49
49
  "id": params.id,
50
- "headingLevel": params.headingLevel if params.headingLevel,
51
- "figureNumber": params.figureNumber if params.figureNumber,
50
+ "headingLevel": params.headingLevel,
51
+ "figureNumber": params.figureNumber,
52
52
  "title": params.title,
53
- "subtitle": params.subtitle if params.subtitle,
53
+ "subtitle": params.subtitle,
54
54
  "audioDescription": params.description,
55
- "caption": params.caption if params.caption,
56
- "footnotes": params.footnotes if params.footnotes,
57
- "download": params.download if params.download
55
+ "caption": params.caption,
56
+ "footnotes": params.footnotes,
57
+ "download": params.download
58
58
  })
59
59
  %}
60
60
  <div class="ons-chart">
@@ -5,7 +5,7 @@
5
5
  {# The heading levels are configurable so the figure slots into the correct place in the
6
6
  document outline, but the title and subtitle always render at the same visual size
7
7
  via the utility font-size classes below. #}
8
- {% set headingLevel = params.headingLevel | default(2) %}
8
+ {% set headingLevel = params.headingLevel | default(2, true) %}
9
9
  {% set openingTitleTag = '<h' ~ headingLevel ~ ' class="ons-figure__title">' %}
10
10
  {% set closingTitleTag = "</h" ~ headingLevel ~ ">" %}
11
11
  {% set openingSubtitleTag = '<h' ~ (headingLevel + 1) ~ ' class="ons-figure__subtitle">' %}
@@ -51,7 +51,7 @@
51
51
  "
52
52
  >
53
53
  {# The nested content appears here #}
54
- {{ caller() if caller }}
54
+ {{ caller() if caller else '' }}
55
55
  </div>
56
56
 
57
57
  {% if params.caption %}
@@ -3,14 +3,14 @@
3
3
 
4
4
  {%
5
5
  call onsFigure({
6
- "id": params.id if params.id,
7
- "headingLevel": params.headingLevel if params.headingLevel,
8
- "figureNumber": params.figureNumber if params.figureNumber,
9
- "title": params.title if params.title,
10
- "subtitle": params.subtitle if params.subtitle,
11
- "caption": params.caption if params.caption,
12
- "footnotes": params.footnotes if params.footnotes,
13
- "download": params.download if params.download
6
+ "id": params.id,
7
+ "headingLevel": params.headingLevel,
8
+ "figureNumber": params.figureNumber,
9
+ "title": params.title,
10
+ "subtitle": params.subtitle,
11
+ "caption": params.caption,
12
+ "footnotes": params.footnotes,
13
+ "download": params.download
14
14
  })
15
15
  %}
16
16
  <div class="ons-image">
@@ -7,13 +7,13 @@
7
7
  {%
8
8
  call onsFigure({
9
9
  "useDivForRootElement": true,
10
- "id": params.id if params.id,
11
- "headingLevel": params.headingLevel if params.headingLevel,
12
- "figureNumber": params.figureNumber if params.figureNumber,
13
- "title": params.title if params.title,
14
- "subtitle": params.subtitle if params.subtitle,
15
- "footnotes": params.footnotes if params.footnotes,
16
- "download": params.download if params.download
10
+ "id": params.id,
11
+ "headingLevel": params.headingLevel,
12
+ "figureNumber": params.figureNumber,
13
+ "title": params.title,
14
+ "subtitle": params.subtitle,
15
+ "footnotes": params.footnotes,
16
+ "download": params.download
17
17
  })
18
18
  %}
19
19
  <div class="ons-table-scrollable ons-table-scrollable--on">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ons/design-system",
3
3
  "description": "ONS Design System built CSS, JS, and Nunjucks templates",
4
- "version": "73.10.0-beta.1",
4
+ "version": "73.10.0-beta.2",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "author": {