@salesforcedevs/dx-components 0.28.4 → 0.29.0

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.28.4",
3
+ "version": "0.29.0",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -25,5 +25,5 @@
25
25
  "@types/debounce": "^1.2.0",
26
26
  "@types/lodash.get": "^4.4.6"
27
27
  },
28
- "gitHead": "774512111aa340d22587b65e15549f195fd5a306"
28
+ "gitHead": "2ae96c272181de5d9f1199bb077aad6fe621cb54"
29
29
  }
@@ -138,6 +138,10 @@
138
138
  border: 1px solid transparent;
139
139
  }
140
140
 
141
+ .button.variant_inline.light-text {
142
+ color: white;
143
+ }
144
+
141
145
  .button.variant_tertiary:hover {
142
146
  background: var(--dx-c-button-secondary-color-hover);
143
147
  border-color: var(--dx-c-button-secondary-color-hover);
@@ -1,6 +1,7 @@
1
1
  import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
3
  import {
4
+ ButtonTextColor,
4
5
  ButtonVariant,
5
6
  IconSprite,
6
7
  IconSize,
@@ -18,6 +19,7 @@ export default class Button extends LightningElement {
18
19
  @api loading: boolean = false;
19
20
  @api size: "large" | "small" = "small";
20
21
  @api variant: ButtonVariant = "primary";
22
+ @api inlineTextColor: ButtonTextColor = "dark";
21
23
  @api font: "display" | "sans" = "display";
22
24
 
23
25
  // button props
@@ -45,6 +47,7 @@ export default class Button extends LightningElement {
45
47
  private get className(): string {
46
48
  return cx(
47
49
  "button",
50
+ this.variant === "inline" && `${this.inlineTextColor}-text`,
48
51
  this.disabled && "state-disabled",
49
52
  `variant_${this.variant}`,
50
53
  this.loading && "state-loading",
@@ -17,6 +17,7 @@
17
17
  <dx-button
18
18
  if:false={hasLargeButton}
19
19
  variant="inline"
20
+ inline-text-color={buttonColor}
20
21
  icon-symbol="forward"
21
22
  >
22
23
  {buttonText}
@@ -2,6 +2,7 @@ import { LightningElement, api } from "lwc";
2
2
  import cx from "classnames";
3
3
  import { toDxColor } from "utils/css";
4
4
  import {
5
+ ButtonTextColor,
5
6
  CardNewsButtonType,
6
7
  CardNewsImagePlacement,
7
8
  CardNewsImageVerticalAlignment,
@@ -15,6 +16,7 @@ export default class CardNews extends LightningElement {
15
16
  @api buttonText?: string = "";
16
17
  @api buttonType!: CardNewsButtonType;
17
18
  @api color?: string = "white";
19
+ @api buttonColor?: ButtonTextColor = "dark";
18
20
  @api dark?: boolean = false;
19
21
  @api size?: CardNewsSize = "normal";
20
22
  @api href!: string;