-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
DataTable TableContainer title/description cannot be referenced to label/describe Table (via aria-labelledby/aria-describedby) #3805
Labels
Comments
justindm234
changed the title
DataTable TableContainer title/description cannot be referenced to label/describe Table via aria-labelledby/aria-describedby)
DataTable TableContainer title/description cannot be referenced to label/describe Table (via aria-labelledby/aria-describedby)
Aug 23, 2019
asudoh
added a commit
to asudoh/carbon-components
that referenced
this issue
Dec 3, 2019
This change adds a capability to specify the element ID of the `<h4>` in `<TableContainer>`. This allows application to set up our data table so VoiceOver announces the content in such `<h4>` when it announces "You are currently in a table" for `<table>`. Fixes carbon-design-system#3805.
asudoh
added a commit
to asudoh/carbon-components
that referenced
this issue
Dec 3, 2019
This change adds a capability to specify the element ID of the `<h4>` in `<TableContainer>`. This allows application to set up our data table so VoiceOver announces the content in such `<h4>` when it announces "You are currently in a table" for `<table>`. Fixes carbon-design-system#3805.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
TableContainer does not define IDs for its title and description nodes so that they can be used to label/describe the Table (via aria-labelledby/aria-describedby).
Because of this, tables must either be labeled by title + description using a single ID on the TableContainer:
Or tables must use aria-label for labeling (which is not recommended by ARIA - "If the label text is visible on screen, authors SHOULD use aria-labelledby and SHOULD NOT use aria-label. " -https://www.w3.org/TR/wai-aria-1.1/#aria-label). This also makes it impossible to provide the screen reader a description for the table.
Without an aria-label or aria-labelledby attribute, JAWS uses the table's rows to label it:
Environment
Firefox ESR 60.8.0esr
JAWS Version 2019.1906.10 ILM
Detailed description
[email protected]
[email protected]
Steps to reproduce the issue
https://codesandbox.io/s/cannot-connect-tablecontainer-titledescription-to-table-b19fm
Additional information
The text was updated successfully, but these errors were encountered: