Skip to content

Commit

Permalink
Added missing area-label attributes (#184)
Browse files Browse the repository at this point in the history
* fix: add aria label to grab handle

* fix: add aria label to text input

---------

Co-authored-by: Alessandro Cuppari <[email protected]>
  • Loading branch information
alessandrojcm and Alessandro Cuppari authored Nov 1, 2023
1 parent 612885a commit 2981177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const MRT_GrabHandleButton = <TData extends Record<string, any> = {}>({
<ActionIcon
draggable="true"
size="sm"
aria-label={actionIconProps?.title ?? localization.move}
{...actionIconProps}
onClick={(e) => {
e.stopPropagation();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ export const MRT_FilterTextInput = <TData extends Record<string, any> = {}>({
const commonProps = {
disabled: !!filterChipLabel,
placeholder: filterPlaceholder,
'aria-label': filterPlaceholder,
title: filterPlaceholder,
onClick: (event: MouseEvent<HTMLInputElement>) => event.stopPropagation(),
onChange: setFilterValue,
Expand Down

1 comment on commit 2981177

@vercel
Copy link

@vercel vercel bot commented on 2981177 Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.