Skip to content

Commit

Permalink
fix: table row select aria-label
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Apr 27, 2021
1 parent d9a06e7 commit adbba76
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/components/src/Table/TableRowSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ const IndeterminateCheckbox: FC<TableToggleAllRowsSelectedProps> = forwardRef(
) {
return (
<Label>
<Checkbox ref={ref} onChange={onChange} checked={checked} />
<Checkbox
ref={ref}
onChange={onChange}
checked={checked}
aria-label={`click to ${checked ? 'un-' : ''}select row`}
/>
</Label>
);
},
Expand Down

0 comments on commit adbba76

Please sign in to comment.