Skip to content

Commit

Permalink
fix: incorrect aria label config passed to LuiButton
Browse files Browse the repository at this point in the history
  • Loading branch information
matttdawson authored Jan 28, 2025
1 parent 89df05d commit 9987f27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/gridFilter/GridFilterHeaderIconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const GridFilterHeaderIconButton = forwardRef<HTMLButtonElement, GridFilt
level={"tertiary"}
className={"lui-button-icon-only"}
ref={ref}
aria-label={title}
buttonProps={{ "aria-label": title }}
title={title}
onClick={onClick}
disabled={disabled}
Expand Down
2 changes: 1 addition & 1 deletion src/lui/ActionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const ActionButton = ({
type={"button"}
level={level}
title={title ?? ariaLabel ?? name}
aria-label={ariaLabel ?? name}
buttonProps={{ "aria-label": ariaLabel ?? name }}
className={clsx(
"lui-button-icon-right",
"ActionButton",
Expand Down

0 comments on commit 9987f27

Please sign in to comment.