Skip to content

Commit

Permalink
reset fab
Browse files Browse the repository at this point in the history
  • Loading branch information
DE7924 committed Dec 20, 2024
1 parent 0502b7a commit e42ae2e
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions src/components/fab/fab.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { html, nothing } from "lit";
import { customElement, property, eventOptions } from "lit/decorators.js";
import { customElement, property } from "lit/decorators.js";
import styles from "./fab.styles.js";
import "../icon/icon.js";
import { ifDefined } from "lit/directives/if-defined.js";
Expand Down Expand Up @@ -55,25 +55,18 @@ export class ZetaFab extends Flavored(BaseButton) {

@property({ type: String, reflect: true }) size: "small" | "large" = "small";

private getLabel() {
return this.label ? html`<div class="label">${this.label}</div>` : nothing;
}
protected render() {
return html`
<button ?disabled=${this.disabled} value=${ifDefined(this.value)} name=${ifDefined(this.name)} type=${ifDefined(this.type)}>
<zeta-icon .rounded=${this.rounded}><slot></slot></zeta-icon>
</button
${this.extended ? this.getLabel() : nothing}
</button>
${this.extended ? nothing : this.getLabel()}
`;
}
// private getLabel() {
// return this.label ? html`<div class="label">${this.label}</div>` : nothing;
// }
// protected render() {
// return html`
// <button ?disabled=${this.disabled} value=${ifDefined(this.value)} name=${ifDefined(this.name)} type=${ifDefined(this.type)}>
// <zeta-icon .rounded=${this.rounded}><slot></slot></zeta-icon>
// ${this.extended ? this.getLabel() : nothing}
// </button>
// ${this.extended ? nothing : this.getLabel()}
// `;
// }
}

declare global {
Expand Down

0 comments on commit e42ae2e

Please sign in to comment.