Skip to content

DrBloke/accessible-tables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Complex Tables

Creating HTML tables can be hard, especially if they have multi-level column or row headings; get it slightly wrong and screen readers will get confused and you inadvertently make your page inaccessible.

This library takes away your pain. Get your data into a simple format and initialise your table. Then tell it what you want your heading structure to be. And hopefully that's it; you'll be given an HTML node to put into your page. If not, for example if one of your rows has the wrong number of data points, then you should be told why.

In addition, to make your tables accessible to screen reader users, you should probably put in extra mark-up that adds elements to your table that might not be necessary for the desired visual goad. This libary helps you to do that without any thought.

Examples

  1. A table with column and row headings
  2. A table with column headings only that is accessible to screen reader users
  3. A table with neither column nor row headings that is accessible to screen reader users
  4. A table with multi-level column headings and single-level row headings coming soon...
  5. A table with multi-level row headings and single-level column headings
  6. A table with multi-level row headings and multi-level column headings
  7. A table with column groups
  8. A table with row groups

Inspiration

This project was inspired and guided by the following:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages