refactor: add "button" role to clickable UI elements for improved accessibility (#26602)

This commit is contained in:
Edgar Ulloa
2024-04-18 09:28:02 -07:00
committed by GitHub
parent 9ee56bbc5b
commit 7263c7cb47
23 changed files with 107 additions and 12 deletions

View File

@@ -610,6 +610,7 @@ export default function TableChart<D extends DataRecord = DataRecord>(
col.toggleSortBy();
}
}}
role="columnheader button"
onClick={onClick}
data-column-name={col.id}
{...(allowRearrangeColumns && {