@fluid-topics/ft-button 1.1.70 → 1.1.71

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.
@@ -10,7 +10,7 @@ import { FtTooltip } from "@fluid-topics/ft-tooltip";
10
10
  import { FtTypography } from "@fluid-topics/ft-typography";
11
11
  import { FtIcon } from "@fluid-topics/ft-icon";
12
12
  import { FtLoader } from "@fluid-topics/ft-loader";
13
- import { html, nothing } from "lit";
13
+ import { html } from "lit";
14
14
  import { classMap } from "lit/directives/class-map.js";
15
15
  import { property, query } from "lit/decorators.js";
16
16
  class FtBaseButton extends toFtFormComponent(FtLitElement, "button") {
@@ -73,10 +73,11 @@ class FtBaseButton extends toFtFormComponent(FtLitElement, "button") {
73
73
  <ft-loader part="loader icon"></ft-loader> `;
74
74
  }
75
75
  else {
76
- return this.icon
77
- ? html `
78
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `
79
- : nothing;
76
+ return this.icon ? html `
77
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
78
+ ` : html `
79
+ <slot part="icon" name="icon"></slot>
80
+ `;
80
81
  }
81
82
  }
82
83
  focus() {