Skip to content

Commit

Permalink
testing failure
Browse files Browse the repository at this point in the history
  • Loading branch information
DE7924 committed Dec 13, 2024
1 parent 8db5785 commit 1bd5a4e
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/components/fab/fab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,25 @@ 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>
${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 1bd5a4e

Please sign in to comment.