Improve table and videos accessibility in BlockNote #2766
Ovgodd
started this conversation in
Ideas & Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Improve table accessibility in BlockNote and table-related videos
Feature Request
Hello, I am opening a discussion regarding the accessibility of tables in BlockNote and the table-related videos audited in Docs.
Audited document:
https://docs.numerique.gouv.fr/docs/0d998bef-1b69-47ce-bd18-83d4d849c734/
Is your feature request related to a problem or unsupported use case? Please describe.
Several accessibility issues were identified around tables.
BlockNote tables
On the BlockNote side, the generated tables are not fully accessible for screen reader users.
The interface allows users to define row and column headers, and the generated markup uses
<th>elements. However, these headers are not explicitly associated with the related cells.There is currently no
scopeattribute, no uniqueid/headersrelationship, and no clearrowheaderorcolumnheadersemantics.Because of this, screen readers may not be able to reliably announce whether a header is related to a row or a column.
The same issue also applies to merged cells, where the relationship with the related headers is not clearly exposed.
Another issue is that the interface does not currently allow users to add an accessible title to a table.
A table title should be exposed through one of these techniques:
or through
title,aria-label, oraria-labelledby.Table-related videos
In the audit, some videos explaining table features were also reviewed.
For example, the video “Ajouter des colonnes et des lignes” shows how to add rows and columns using the mouse, but there is no text transcript explaining the same action for blind or visually impaired users.
The videos are also preceded by a title, but there is no additional context explaining the goal of the video before the user watches it.
Delete a table block
In the “Delete a table” block, the visual context explains how to delete a table with the mouse.
However, the keyboard workflow is different and is not clearly explained.
Table colors
Some colors used inside tables do not provide enough contrast.
Describe the solution you'd like
Improve the accessibility of table-related content and table editing features.
Expected improvements for BlockNote tables:
scope="col"andscope="row"for simple tables when possible;idandheadersfor more complex tables when needed;For simple tables, header relationships can usually be exposed with
scope.For more complex tables, especially with merged cells,
idandheadersmay be needed.Expected improvements for table-related guidance and videos:
Discovery, Documentation, Adoption, Migration Strategy
This should be reviewed in two parts:
The goal is to make table creation, editing, and reading usable for keyboard and screen reader users.
This discussion can be split into smaller implementation tasks if needed:
Beta Was this translation helpful? Give feedback.
All reactions