Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix: name aria-label attribute correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mthomann committed Feb 2, 2023
1 parent 73f5500 commit 510245a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/buttons/text-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export type TextButtonProps = {
} & ButtonHTMLAttributes<HTMLButtonElement>;

export const TextButton: FC<TextButtonProps> = ({
ariaLabel,
children,
color,
displayMode = TextButtonDisplayMode.inline,
Expand Down Expand Up @@ -128,7 +129,7 @@ export const TextButton: FC<TextButtonProps> = ({
]);

return (
<button className={classes} onClick={onClick} {...args}>
<button aria-label={ariaLabel} className={classes} onClick={onClick} {...args}>
<>
<Label size={LabelSize.m}>{children}</Label>
{icon}
Expand Down

0 comments on commit 510245a

Please sign in to comment.