Skip to content

Commit

Permalink
fixed classmap issue in icon button
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianHoffmannS2 committed Mar 14, 2024
1 parent c13e0aa commit 4b3fbf1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/ui-library/src/components/button-icon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ export class BlrButtonIcon extends LitElement {
protected render() {
if (this.sizeVariant) {
const classes = classMap({
'blr-semantic-action': true,
'blr-button-icon': true,
[this.variant]: this.variant,
[this.sizeVariant]: this.sizeVariant,
disabled: this.disabled,
loading: this.loading || false,
'disabled': this.disabled,
'loading': this.loading || false,
[this.theme]: this.theme,
});

const iconClasses = classMap({
Expand Down Expand Up @@ -102,7 +105,7 @@ export class BlrButtonIcon extends LitElement {
return html`
<span
aria-label=${this.arialabel || nothing}
class="blr-semantic-action blr-button-icon ${this.theme} ${classes}"
class="${classes}"
aria-disabled=${this.disabled ? 'true' : nothing}
@click=${this.handleClick}
id=${this.buttonIconId || nothing}
Expand Down

0 comments on commit 4b3fbf1

Please sign in to comment.