Skip to content

Commit 8f2205c

Browse files
committed
fix(table): add aria-live to improve screenreader compat
1 parent dcec1c5 commit 8f2205c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/table/table.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ import { I18n } from "./../i18n/i18n.module";
200200
class="bx--table-sort-v2"
201201
*ngIf="this.sort.observers.length > 0 && column.sortable"
202202
[attr.aria-label]="(column.sorted && column.ascending ? sortDescendingLabel : sortAscendingLabel)"
203+
aria-live="polite"
203204
[ngClass]="{
204205
'bx--table-sort-v2--active': column.sorted,
205206
'bx--table-sort-v2--ascending': column.ascending

0 commit comments

Comments
 (0)