-
Notifications
You must be signed in to change notification settings - Fork 843
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
EuiTableHeaderCell should read aloud text content instead of aria-label #1378
Comments
Removing
|
Taking another look, |
I think taking a look at |
|
Resolved by #1426 |
The current implementation uses
aria-label
to override the default screen reader behavior of reading aloud the text contents: https://github.com/elastic/eui/blob/master/src/components/table/table_header_cell.js#L61This presents two problems:
children
will cause the screen reader to read something like "Sort [Object object] ascending".I think one solution would be to use the
sortIcon
to provide screen-reader-specific sort information. Instead of conditionally rendering it, we could always render it but wrap it inEuiScreenReaderOnly
when the column isn't being sorted on. We could then putaria-label={Click to sort ascending/descending}
on the sort icon, which will be read aloud after the column text content is read.The text was updated successfully, but these errors were encountered: