From 1986ddf197eaaf12a6c2b26b6acb3c8acbc39b86 Mon Sep 17 00:00:00 2001 From: Max Holman Date: Sat, 14 Jan 2023 12:26:11 +0800 Subject: [PATCH] fix: move textOverflow to the text of the button, fixing incorrect rendering --- lib/buttons.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/buttons.tsx b/lib/buttons.tsx index 2076332..557f701 100644 --- a/lib/buttons.tsx +++ b/lib/buttons.tsx @@ -64,6 +64,7 @@ const ButtonInternal: FC< className, icon, inline, + textOverflow = 'ellipsis', children, ...props }) => ( @@ -78,7 +79,6 @@ const ButtonInternal: FC< className, )} space="nano" - textOverflow="ellipsis" {...props} > {icon && ( @@ -89,6 +89,7 @@ const ButtonInternal: FC< {children}