Skip to content

Commit

Permalink
fix: breaking change - sfbutton padding size (#2815) (#2829)
Browse files Browse the repository at this point in the history
  • Loading branch information
aniamusial authored and FRSgit committed Jun 29, 2023
1 parent a38f4e6 commit 33935c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/five-geese-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@storefront-ui/react': major
'@storefront-ui/vue': major
---

Breaking Change - Padding size for square variant of SfButton changed
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const getSizeClasses = (size: SfButtonProps['size'], square: SfButtonProps['squa
case SfButtonSize.sm:
return [square ? 'p-1.5' : 'leading-5 text-sm py-1.5 px-3', 'gap-1.5'];
case SfButtonSize.lg:
return [square ? 'p-4' : 'py-3 leading-6 px-6', 'gap-3'];
return [square ? 'p-3' : 'py-3 leading-6 px-6', 'gap-3'];
default:
return [square ? 'p-2' : 'py-2 leading-6 px-4', 'gap-2'];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const sizeClasses = computed(() => {
case SfButtonSize.sm:
return [square.value ? 'p-1.5' : 'leading-5 text-sm py-1.5 px-3', 'gap-1.5'];
case SfButtonSize.lg:
return [square.value ? 'p-4' : 'py-3 leading-6 px-6', 'gap-3'];
return [square.value ? 'p-3' : 'py-3 leading-6 px-6', 'gap-3'];
default:
return [square.value ? 'p-2' : 'py-2 leading-6 px-4', 'gap-2'];
}
Expand Down

0 comments on commit 33935c6

Please sign in to comment.