merged table cells do not expose clear header relationships

Aperta
#2,826 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
typescript

Direzione di ricerca

Start by reproducing the issue in a BlockNote table with merged cells and row/column headers, then inspect the generated DOM and existing table implementation. Compare the markup with the issue’s id/headers example and verify that assistive technologies can determine the applicable headers for merged cells.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

a11y
What’s broken?

This issue was identified during the Docs accessibility audit on a page containing table-related content.

Audited page:
https://docs.numerique.gouv.fr/docs/0d998bef-1b69-47ce-bd18-83d4d849c734/

In BlockNote tables, merged cells do not expose clear relationships with their related row and column headers.

When a table contains merged cells, the structure becomes more complex. However, the generated markup does not clearly indicate which headers apply to each merged cell.

There is no reliable id / headers relationship to help assistive technologies understand the table structure.

Because of this, screen readers may not be able to announce the correct header context for merged cells.

What did you expect to happen?

Merged cells should preserve clear relationships with their related table headers.

For complex tables, especially when cells are merged, BlockNote should expose relationships using id and headers.

Example:

<th id="q1">Q1</th>
<th id="north">North</th>
<td headers="north q1">120</td>
Steps to reproduce
  • Insert a table using BlockNote.
  • Create or use a table with merged cells and row/column headers.
  • Inspect the generated table in the DOM.
  • Notice that merged cells are not explicitly associated with their related headers:
  • no reliable id / headers relationship;
  • no clear semantic relationship allowing assistive technologies to identify which headers apply to the merged cell.
BlockNote version

0.51.4

Lingua principale
TypeScript
Stelle
10.2k
Fork
772
Merge medio
3g 11h
PR unite (30g)
17

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TypeCellOS/BlockNote

Tutte le issue di TypeCellOS/BlockNote

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.