@salesforcedevs/dx-components 0.46.0 → 0.46.3

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.46.0",
3
+ "version": "0.46.3",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -28,5 +28,5 @@
28
28
  "@types/lodash.get": "^4.4.6",
29
29
  "@types/vimeo__player": "^2.16.2"
30
30
  },
31
- "gitHead": "78a4e68343ce579334b49d3dd6c474e1f71b4fd6"
31
+ "gitHead": "d9d4e65fb9394d0156ed3364cfb3aff5423fb323"
32
32
  }
@@ -11,8 +11,9 @@ import {
11
11
  } from "./links";
12
12
  import { track } from "dx/instrumentation";
13
13
 
14
+ const PATH = "/newsletter";
14
15
  const createNewsletterSignupHref = (email: string): string =>
15
- `/newsletter?subscriberEmail=${email}`;
16
+ `${PATH}?subscriberEmail=${email}`;
16
17
 
17
18
  const ANALYTICS_INFO = {
18
19
  itemTitle: "Newsletter Sign Up Footer",
@@ -95,7 +96,7 @@ export default class Footer extends LightningElement {
95
96
  track(e.currentTarget, "custEv_ctaButtonClick", {
96
97
  ...ANALYTICS_INFO,
97
98
  clickText: this.inputSubmitLabel,
98
- clickUrl: href
99
+ clickUrl: PATH
99
100
  });
100
101
 
101
102
  window.location.assign(href);
@@ -81,7 +81,18 @@
81
81
  .content-button.selected {
82
82
  border-color: var(--dx-g-blue-vibrant-50);
83
83
  color: var(--dx-g-blue-vibrant-50);
84
- font-weight: bold;
84
+ font-weight: var(--dx-g-font-bold);
85
+ }
86
+
87
+ .content-button::after {
88
+ content: attr(data-text);
89
+ display: block;
90
+ font-weight: var(--dx-g-font-bold);
91
+ height: 0;
92
+ overflow: hidden;
93
+ pointer-events: none;
94
+ user-select: none;
95
+ visibility: hidden;
85
96
  }
86
97
 
87
98
  .content-button:not(.selected):hover {
@@ -15,6 +15,7 @@
15
15
  class={option.className}
16
16
  onclick={onClick}
17
17
  contentid={option.id}
18
+ data-text={option.label}
18
19
  key={option.id}
19
20
  >
20
21
  {option.label}