Skip to content

Commit

Permalink
concat aria-labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas742 committed Sep 25, 2024
1 parent e8c475a commit 74cb1e3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const setHeaderProps = (

const updatedProps = {};
updatedProps['aria-label'] = column.headerLabel ??= '';

if (updatedProps['aria-label']) {
updatedProps['aria-label'] += ' ';
}
Expand All @@ -101,7 +102,7 @@ const setHeaderProps = (
}

if (selectionMode === AnalyticalTableSelectionMode.Multiple && column.id === '__ui5wcr__internal_selection_column') {
updatedProps['aria-label'] = instance.isAllRowsSelected
updatedProps['aria-label'] += instance.isAllRowsSelected
? translatableTexts.deselectAllA11yText
: translatableTexts.selectAllA11yText;
}
Expand Down

0 comments on commit 74cb1e3

Please sign in to comment.