File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 354354 < button
355355 type= " button"
356356 class: bx-- table- expand__button= {true }
357+ aria- label= {expanded ? " Collapse all rows" : " Expand all rows" }
358+ aria- controls= {expandableRowIds
359+ .map ((id ) => ` expandable-row-${ id} ` )
360+ .join (" " )}
357361 on: click= {() => {
358362 expanded = ! expanded;
359363 expandedRowIds = expanded ? expandableRowIds : [];
360364
361365 dispatch (" click:header--expand" , { expanded });
362366 }}
363367 >
364- < ChevronRight class = " bx--table-expand__svg" / >
368+ < ChevronRight
369+ aria- hidden= " true"
370+ class = " bx--table-expand__svg"
371+ / >
365372 < / button>
366373 {/ if }
367374 < / th>
476483 < button
477484 type= " button"
478485 class: bx-- table- expand__button= {true }
486+ aria- controls= {` expandable-row-${ row .id } ` }
479487 aria- label= {expandedRows[row .id ]
480488 ? " Collapse current row"
481489 : " Expand current row" }
492500 });
493501 }}
494502 >
495- < ChevronRight class = " bx--table-expand__svg" / >
503+ < ChevronRight
504+ aria- hidden= " true"
505+ class = " bx--table-expand__svg"
506+ / >
496507 < / button>
497508 {/ if }
498509 < / TableCell>
560571
561572 {#if expandable}
562573 < tr
574+ id= {` expandable-row-${ row .id } ` }
563575 data- child- row
564576 class: bx-- expandable- row= {true }
565577 on: mouseenter= {() => {
You can’t perform that action at this time.
0 commit comments