Skip to content

Commit

Permalink
fix(button): hide slot content when square prop is set
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Mar 8, 2022
1 parent c901e47 commit 90ced0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export class Button implements ComponentInterface {
class="data-test-button-label"
{...this.spanAttrs}
small={this.size === 'small'}
style={{ display: this.loading ? 'none' : 'inline' }}
style={{ display: this.loading || this.square ? 'none' : 'inline' }}
>
<slot />
</bal-text>
Expand Down

0 comments on commit 90ced0a

Please sign in to comment.