Skip to content

Commit 1520924

Browse files
(Button): restrict when to show title attribute
1 parent 6b0c318 commit 1520924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export const Button: FC<ButtonProps> = (props) => {
159159
ref={buttonRef}
160160
className={btnClassNames}
161161
type={htmlType}
162-
title={alt}
162+
title={isIconOnly || alt ? alt : undefined}
163163
tabIndex={tabIndex ?? -1}
164164
{...rprops}
165165
onClick={onClick}

0 commit comments

Comments
 (0)