Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add button role to table header interactive element #289

Merged
merged 11 commits into from
Dec 13, 2023
4 changes: 4 additions & 0 deletions coral-component-table/src/scripts/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -2467,6 +2467,10 @@ const Table = Decorator(class extends BaseComponent(HTMLTableElement) {
headerCell.setAttribute('role', 'rowheader');
}
headerCell.setAttribute('scope', scope);

if(headerCell.hasAttribute('sortable')){
headerCell.content.setAttribute('role', 'button');
}
}

/** @private */
Expand Down
Loading