diff --git a/.changeset/small-eagles-switch.md b/.changeset/small-eagles-switch.md new file mode 100644 index 0000000000..b320c5b1f4 --- /dev/null +++ b/.changeset/small-eagles-switch.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-core": patch +--- + +Fix broken Slot functionality in Button diff --git a/core/components/ui/button/button.tsx b/core/components/ui/button/button.tsx index df61b5a779..73ed6ef11d 100644 --- a/core/components/ui/button/button.tsx +++ b/core/components/ui/button/button.tsx @@ -45,13 +45,17 @@ export const Button = forwardRef, ButtonProps>( ref={ref} {...props} > - {loading && ( - - + {loading ? ( + <> + + + {children} + + ) : ( + children )} - {children} ); },