Skip to content

Commit

Permalink
Fix #6706: Datatable selection aria locale label (#6707)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored May 29, 2024
1 parent 25be452 commit 5feb844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/datatable/BodyCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ export const BodyCell = React.memo((props) => {
const ariaLabelField = props.selectionAriaLabel || props.tableProps.dataKey;
const ariaLabelText = ObjectUtils.resolveFieldData(props.rowData, ariaLabelField);

label = `${props.selected ? ariaLabel('unselectLabel') : ariaLabel('selectLabel')} ${ariaLabelText}`;
label = `${props.selected ? ariaLabel('unselectRow') : ariaLabel('selectRow')} ${ariaLabelText}`;
}

content = showSelection && (
Expand Down

0 comments on commit 5feb844

Please sign in to comment.