Skip to content

Commit

Permalink
fix(button): fixing lagacy size button
Browse files Browse the repository at this point in the history
  • Loading branch information
WillianLomeu committed Aug 8, 2024
1 parent 70b663a commit 4e54bd3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,12 @@ export class Button {
}

buttonLegacy() {
this.variant === 'facebook' ? this.setVariant('outline') : this.setVariant(this.variant)
this.variant === 'facebook' ? this.setVariant('outline') : this.setVariant(this.variant);
this.size === 'tall'
? this.setSize('large')
: this.size === 'standard'
? this.setSize('medium')
: this.setSize(this.size);
}

logSlotText() {
Expand Down

0 comments on commit 4e54bd3

Please sign in to comment.