@salesforcedevs/dx-components 0.43.0-alpha.1 → 0.43.2-alpha1

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": "0.43.0-alpha.1",
3
+ "version": "0.43.2-alpha1",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -26,7 +26,7 @@
26
26
 
27
27
  /* mobile responsiveness */
28
28
 
29
- @media screen and (max-width: 1024px) {
29
+ @media screen and (max-width: 768px) {
30
30
  .card-content:not(.dx-card-base_featured) {
31
31
  flex-direction: row;
32
32
  }
@@ -27,13 +27,19 @@ export default class DropdownOption extends LightningElement {
27
27
  new CustomEvent("select", { detail: this.keyValue })
28
28
  );
29
29
 
30
+ const navHeading = this.navItemLabel || this.option.label || undefined;
31
+ const navSubHeading =
32
+ (this.navItemLabel ? this.option.label : undefined) || undefined;
33
+
34
+ const payload = {
35
+ navHeading,
36
+ navSubHeading,
37
+ clickText: this.keyValue || undefined,
38
+ pageLocation: window.location.pathname || undefined
39
+ };
40
+
30
41
  if (this.analyticsEvent && e.currentTarget) {
31
- track(e.currentTarget, this.analyticsEvent, {
32
- navHeading: this.navItemLabel || undefined,
33
- navSubHeading: this.option.label || undefined,
34
- clickText: this.keyValue || undefined,
35
- pageLocation: window.location.pathname || undefined
36
- });
42
+ track(e.currentTarget, this.analyticsEvent, payload);
37
43
  }
38
44
  }
39
45
  }
@@ -94,8 +94,8 @@ export default class Footer extends LightningElement {
94
94
 
95
95
  track(e.currentTarget, "custEv_ctaButtonClick", {
96
96
  ...ANALYTICS_INFO,
97
- clickText: e.detail,
98
- clickUrl: href,
97
+ clickText: this.inputSubmitLabel,
98
+ clickUrl: href
99
99
  });
100
100
 
101
101
  window.location.assign(href);