Skip to content

Commit

Permalink
✨ pix-ui: use content with pix icons component on PixButton
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiaPena committed Jan 22, 2025
1 parent 8e417e3 commit 68e84ad
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions addon/components/pix-button.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,13 @@
</div>
<span class="loader__not-visible-text">{{yield}}</span>
{{else}}
{{#if @iconBefore}}
<PixIcon
class="pix-button__icon pix-button__icon--before"
@ariaHidden={{true}}
@name={{@iconBefore}}
@plainIcon={{@plainIconBefore}}
/>
{{/if}}
{{yield}}
{{#if @iconAfter}}
<PixIcon
class="pix-button__icon pix-button__icon--after"
@name={{@iconAfter}}
@ariaHidden={{true}}
@plainIcon={{@plainIconAfter}}
/>
{{/if}}
<ContentWithPixIcons
@iconBefore={{@iconBefore}}
@iconAfter={{@iconAfter}}
@plainIconAfter={{@plainIconAfter}}
@plainIconBefore={{@plainIconBefore}}
>
{{yield}}
</ContentWithPixIcons>
{{/if}}
</button>

0 comments on commit 68e84ad

Please sign in to comment.