@salesforcedevs/dx-components 1.3.37 → 1.3.38

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.37",
3
+ "version": "1.3.38",
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": "c942dc5862828a15268ead587afe1cd3c5fa1fae"
41
+ "gitHead": "9cc8fbc4b276d28eb128f5f7fd1eec7844e831b2"
42
42
  }
@@ -2,6 +2,13 @@
2
2
  @import "dxHelpers/text";
3
3
  @import "dxHelpers/card";
4
4
 
5
+ :host {
6
+ --dx-c-feature-img-padding-top: 0;
7
+ --dx-c-feature-img-padding-right: 0;
8
+ --dx-c-feature-img-padding-left: 0;
9
+ --dx-c-feature-img-padding-bottom: 0;
10
+ }
11
+
5
12
  .dx-card-news {
6
13
  position: relative;
7
14
  display: flex;
@@ -157,3 +164,10 @@ img {
157
164
  max-width: 25%;
158
165
  }
159
166
  }
167
+
168
+ .dx-card-news-img-padding {
169
+ padding: var(--dx-c-feature-img-padding-top)
170
+ var(--dx-c-feature-img-padding-right)
171
+ var(--dx-c-feature-img-padding-bottom)
172
+ var(--dx-c-feature-img-padding-left);
173
+ }
@@ -59,7 +59,8 @@ export default class CardNews extends LightningElement {
59
59
  return cx(
60
60
  this.imgVerticalAlign &&
61
61
  `dx-card-news-img-vertical-align-${this.imgVerticalAlign}`,
62
- this.textContainerWidth === "large" && `dx-card-news-img-small`
62
+ this.textContainerWidth === "large" && `dx-card-news-img-small`,
63
+ `dx-card-news-img-padding`
63
64
  );
64
65
  }
65
66
 
@@ -12,8 +12,11 @@ import {
12
12
  import { track } from "dxUtils/analytics";
13
13
 
14
14
  const PATH = "/newsletter";
15
- const createNewsletterSignupHref = (email: string): string =>
16
- `${PATH}?subscriberEmail=${email}`;
15
+ const LOCAL_STORAGE_KEY = "subscriberEmail";
16
+ const createNewsletterSignupHref = (email: string): string => {
17
+ window.localStorage.setItem(LOCAL_STORAGE_KEY, email);
18
+ return PATH;
19
+ };
17
20
 
18
21
  const ANALYTICS_INFO = {
19
22
  itemTitle: "Newsletter Sign Up Footer",