Skip to content

Commit

Permalink
Merge pull request #866 from takenet/bugfix/facebook-button
Browse files Browse the repository at this point in the history
fix(button): fixing lagacy size button
  • Loading branch information
WillianLomeu authored Aug 8, 2024
2 parents 0754e62 + 4e54bd3 commit e3ce41c
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 e3ce41c

Please sign in to comment.