@salesforcedevs/mrkt-components 0.68.1 → 0.69.1

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/mrkt-components",
3
- "version": "0.68.1",
3
+ "version": "0.69.1",
4
4
  "description": "Marketing Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -15,5 +15,5 @@
15
15
  "devDependencies": {
16
16
  "@types/classnames": "^2.2.10"
17
17
  },
18
- "gitHead": "5aa9cb52b70c658e41dbcc89b62baf84e12ce842"
18
+ "gitHead": "0cf2f7833e1255556d0a80e6880354e4a27c5157"
19
19
  }
@@ -10,7 +10,9 @@
10
10
  <div class="text-container">
11
11
  <dx-icon-badge
12
12
  if:true={hasIcon}
13
+ color={iconColor}
13
14
  symbol={iconSymbol}
15
+ sprite={iconSprite}
14
16
  ></dx-icon-badge>
15
17
  <h2 if:true={title} class="title dx-text-heading-2b">{title}</h2>
16
18
  <span if:true={subtitle} class="subtitle dx-text-body-1">
@@ -3,7 +3,9 @@ import cx from "classnames";
3
3
 
4
4
  export default class SectionHeader extends LightningElement {
5
5
  @api dark?: boolean;
6
+ @api iconColor?: string;
6
7
  @api iconSymbol?: string;
8
+ @api iconSprite?: string = "utility";
7
9
  @api imgSrc?: string;
8
10
  @api imgSrcLeft?: string;
9
11
  @api imgSrcRight?: string;
@@ -96,7 +96,12 @@ a.active > dx-icon-badge {
96
96
  --dx-c-icon-badge-background-color: var(--dx-g-blue-vibrant-50);
97
97
  }
98
98
 
99
- a:not(.active):hover > dx-icon-badge {
99
+ a.active > dx-icon-badge::part(badge),
100
+ a:not(.active):hover > dx-icon-badge::part(badge) {
101
+ --dx-c-icon-badge-color: white;
102
+ }
103
+
104
+ a:not(.active):hover > dx-icon-badge::part(badge) {
100
105
  --dx-c-icon-badge-background-color: var(--dx-g-blue-vibrant-40);
101
106
  }
102
107
 
@@ -23,6 +23,7 @@
23
23
  <a class={navItem.className} href={navItem.link.href}>
24
24
  <dx-icon-badge
25
25
  symbol={navItem.iconSymbol}
26
+ color={navItem.iconColor}
26
27
  if:true={isDesktop}
27
28
  ></dx-icon-badge>
28
29
  <span>{navItem.label}</span>