@onsvisual/svelte-components 0.1.18 → 0.1.20

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.
@@ -70,8 +70,8 @@
70
70
  export let gap = 12;
71
71
 
72
72
  let gridClass = !colwidth || colwidth === "full" ? "" : `grid-${colwidth}`;
73
- let rowHeight = height === "full" ? "100vh" : !Number.isNaN(height) ? height + "px" : height;
74
- let gridGap = !Number.isNaN(gap) ? gap + "px" : gap;
73
+ let rowHeight = height === "full" ? "100vh" : typeof height === "number" ? height + "px" : height;
74
+ let gridGap = typeof gap === "number" ? gap + "px" : gap;
75
75
 
76
76
  const defs = {
77
77
  narrow: { w: 180, c: 4 },
@@ -45,7 +45,7 @@
45
45
  <div class="ons-grid">
46
46
  <div class="ons-grid__col ons-col-10@m">
47
47
  <h1 class="ons-u-fs-xxxl ons-u-mt-s ons-u-mb-m ons-u-pb-no ons-u-pt-no">
48
- {title}
48
+ {@html title}
49
49
  </h1>
50
50
  </div>
51
51
  {#if natStatBadge}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onsvisual/svelte-components",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://onsvisual.github.io/svelte-components",