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

feat(VDataTable): Screenreader suport for sorting #20594

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

viktorkratz
Copy link

Description

For screenreader users there was no possibility to dtermine wether a table column is sortable or not. The sort status was not readable too. This commit fixes this problem. In theory aria-sort can only be set to one table header
(see https://www.w3.org/TR/wai-aria-1.2/#aria-sort),
but in most screen readers it's even working with multiple columns containing aria-sort. For others it's only anouncing the first one, so i think setting it on every column which has an order set is the best option.

Markup:

<script> export default { name: 'Playground', setup () { return { items: [{ name: 'bla', test: 'test1' }, { name: 'blu', test: 'test2' }], } }, } </script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant