Skip to content

Commit 4b9d0ae

Browse files
committed
maintain backward compat for like 5mins
1 parent 774f470 commit 4b9d0ae

File tree

1 file changed

+4
-4
lines changed
  • packages/components/src/components/IconButton

1 file changed

+4
-4
lines changed

packages/components/src/components/IconButton/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ import { Tooltip } from '../Tooltip';
88
type IconButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
99
/** name of the icon */
1010
name: IconNames;
11-
/** icon button should have a label for accessibility */
12-
label: string;
11+
/** icon button should have a title for accessibility */
12+
title: string;
1313
/** Size of the icon, the button is set to 26x26 */
1414
size?: number;
1515
};
1616

1717
export const IconButton: React.FC<IconButtonProps> = ({
1818
name,
19-
label,
19+
title,
2020
size,
2121
css = {},
2222
...props
2323
}) => (
2424
// @ts-ignore
25-
<Tooltip label={label}>
25+
<Tooltip label={title}>
2626
<Button
2727
variant="link"
2828
css={deepmerge(

0 commit comments

Comments
 (0)