File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ function onNodeAdded(target) {
4141 var id = "axsg-lh" + idCounter ++ ;
4242 header . setAttribute ( "id" , id ) ;
4343 list . setAttribute ( "aria-labelledby" , id ) ;
44+ // Make the header's container into a heading.
45+ header . parentNode . setAttribute ( "role" , "heading" ) ;
46+ header . parentNode . setAttribute ( "aria-level" , "2" ) ;
4447 }
4548 }
4649 for ( var card of target . querySelectorAll ( ".list-card" ) ) {
Original file line number Diff line number Diff line change @@ -95,3 +95,4 @@ It does the following:
9595 If you are using a screen reader, you will need to ensure that the arrow keys are passed to the application to make use of this.
9696 For NVDA, you can achieve this by switching to focus mode to move through cards.
9797- Labels badges in cards.
98+ - Makes list headers accessible as headings.
You can’t perform that action at this time.
0 commit comments