@salesforcedevs/dx-components 1.3.32 → 1.3.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "1.3.32",
3
+ "version": "1.3.33",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -38,5 +38,5 @@
38
38
  "eventsourcemock": "^2.0.0",
39
39
  "luxon": "^3.1.0"
40
40
  },
41
- "gitHead": "550125540ec042bed34b7643f50548ffcc774093"
41
+ "gitHead": "bc1e71ba19a01c9479ba93b8f827cc152c359c33"
42
42
  }
@@ -37,7 +37,6 @@ img {
37
37
  }
38
38
 
39
39
  img.desktop {
40
- height: fit-content;
41
40
  min-width: 876px;
42
41
  margin-left: var(--dx-g-spacing-lg);
43
42
  }
@@ -88,3 +87,16 @@ dx-button {
88
87
  display: block;
89
88
  }
90
89
  }
90
+
91
+ @media screen and (max-width: 768px) {
92
+ .body,
93
+ .subtitle {
94
+ font-size: var(--dx-g-text-base);
95
+ line-height: var(--dx-g-text-xl);
96
+ }
97
+
98
+ .heading {
99
+ font-size: var(--dx-g-text-3xl);
100
+ line-height: var(--dx-g-text-4xl);
101
+ }
102
+ }
@@ -3,8 +3,10 @@
3
3
  <div class="text-container" style={style}>
4
4
  <h1 class="heading dx-text-heading-2">{title}</h1>
5
5
  <span class="body dx-text-body-1">{body}</span>
6
- <span class="subtitle dx-text-heading-4b">{subtitle}</span>
7
- <dx-button href={ctaHref} target={ctaTarget} size="hero">
6
+ <span if:true={subtitle} class="subtitle dx-text-heading-4b">
7
+ {subtitle}
8
+ </span>
9
+ <dx-button href={ctaHref} target={ctaTarget} size="large">
8
10
  {ctaLabel}
9
11
  </dx-button>
10
12
  </div>
@@ -3,7 +3,7 @@ import { track } from "dxUtils/analytics";
3
3
 
4
4
  export default class MainContentHeader extends LightningElement {
5
5
  @api title!: string;
6
- @api subtitle!: string;
6
+ @api subtitle?: string;
7
7
  @api body!: string;
8
8
  @api ctaLabel!: string;
9
9
  @api ctaHref!: string;