Skip to content

Commit

Permalink
fix(ui-kit/icon-button): flip-rtl attr
Browse files Browse the repository at this point in the history
  • Loading branch information
MM25Zamanian authored and AliMD committed Dec 29, 2022
1 parent f6427b6 commit 9607493
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/ui-kit/src/icon-button/standard-icon-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ export class AlwatrStandardIconButton extends AlwatrDummyElement {
}
`;

@property() icon?: string;
@property()
icon?: string;

@property({type: Boolean, attribute: 'flip-rtl'})
flipRtl = false;

override render(): unknown {
return html`<alwatr-icon flip-rtl .name=${this.icon}></alwatr-icon>`;
return html`<alwatr-icon ?flip-rtl=${this.flipRtl} .name=${this.icon}></alwatr-icon>`;
}
}

0 comments on commit 9607493

Please sign in to comment.