Skip to content

Commit

Permalink
Merge pull request #2236 from epam/feature/table-collapse-all-aria-label
Browse files Browse the repository at this point in the history
[DataTable]: Added aria-label for collapseAll/expandAll.
  • Loading branch information
AlekseyManetov authored May 13, 2024
2 parents 9e601c1 + 3d3f37f commit e98c036
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions uui/components/tables/DataTableHeaderCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ export class DataTableHeaderCell<TItem, TId> extends React.Component<DataTableHe
cx={ cx(css.icon, css.foldAllIcon, uuiDataTableHeaderCell.uuiTableHeaderFoldAllIcon) }
icon={ this.props.areAllFolded ? UnfoldIcon : FoldIcon }
onClick={ this.props.onFoldAll }
rawProps={ {
'aria-label': this.props.areAllFolded ? 'Expand All' : 'Collapse All',
'aria-expanded': !!this.props.areAllFolded,
} }
/>
</Tooltip>
);
Expand Down

0 comments on commit e98c036

Please sign in to comment.