apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
61.67k stars 13.48k forks source link

Accessibility: Table headers are difficult to navigate using screen readers #26177

Open yousoph opened 9 months ago

yousoph commented 9 months ago

Table headers are in separate table element from table content, which is confusing to navigate for screen readers

How to reproduce the bug

  1. Create a table chart
  2. Add the chart to a dashboard
  3. Use a screen reader to navigate to the table chart and navigate within the table

Expected results

User should be able to understand the table headers as well as the table content https://www.w3.org/TR/WCAG22/#info-and-relationships

If it's not feasible to use tags for headers, then we can use aria-label in the cells with the appropriate column header info or aria-labelledby with the header id.

Actual results

Screen reader reads the table content but not any of the headers

Screenshots

Environment

(please complete the following information):

Checklist

Make sure to follow these steps before submitting your issue - thank you!

Additional context

Currently, when a Table Chart is created, the table headers are added to a

element, and the rows are added to another
element. Using a single
HTML element to display the Table chart content should help address this issue

nicocarlier commented 8 months ago

@yousoph @eschutho I can take this one if it's available.