Skip to content

Commit 53c6a6e

Browse files
committed
fix: remove unnecessary aria-label from clear selection button
1 parent bbfec30 commit 53c6a6e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/pluggableWidgets/datagrid-web/src/components/SelectionCounter.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,14 @@ export const SelectionCounter = observer(function SelectionCounter({
1313

1414
const containerClass = location === "top" ? "widget-datagrid-tb-start" : "widget-datagrid-pb-start";
1515

16-
const clearButtonAriaLabel = `${selectionCountStore.clearButtonLabel} (${selectionCountStore.selectedCount} selected)`;
17-
1816
return (
1917
<If condition={selectionCountStore.displayCount !== ""}>
2018
<div className={containerClass}>
2119
<span className="widget-datagrid-selection-count" aria-live="polite" aria-atomic="true">
2220
{selectionCountStore.displayCount}
2321
</span>
2422
&nbsp;|&nbsp;
25-
<button
26-
className="widget-datagrid-clear-selection"
27-
onClick={selectActionHelper.onClearSelection}
28-
aria-label={clearButtonAriaLabel}
29-
>
23+
<button className="widget-datagrid-clear-selection" onClick={selectActionHelper.onClearSelection}>
3024
{selectionCountStore.clearButtonLabel}
3125
</button>
3226
</div>

0 commit comments

Comments
 (0)