Table headers are not associated with data cells
維護者通常 3 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 55/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- react, typescript
研究方向
Start by locating the BlockNote table markup generated after row or column headers are defined, then inspect the DOM behavior described in the issue. Done means simple tables expose the appropriate scope relationships for column and row headers, with coverage for the generated markup.
由索引模型根據 Issue 內容生成。
描述
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, users can define row and column headers, and the generated markup uses <th> elements.
However, these headers are not explicitly associated with their related data cells.
There is currently no clear header relationship exposed through:
scope="col"scope="row"id/headersrelationships for complex tables
Because of this, screen readers may not reliably announce which header applies to each table cell.
This can make table content difficult or impossible to understand for blind users navigating with assistive technologies.
What did you expect to happen?
Table headers should be correctly associated with their related cells.
For simple tables, BlockNote should expose header relationships using scope.
Example:
<table>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Role</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Alice</th>
<td>Designer</td>
</tr>
</tbody>
</table>
Steps to reproduce
- Insert a table
- Define one or more row or column headers.
- Inspect the generated table in the DOM.
- Notice that the table uses
<th>elements, but there is no explicit relationship between headers and data cells:- no
scope="col"on column headers; - no
scope="row"on row headers; - no
id/headersrelationship for more complex tables.
- no
BlockNote version
0.51.4
- 主要語言
- TypeScript
- 星號
- 10.2k
- 分支
- 772
- 平均合併
- 6 天 17 小時
- 30 天內合併 PR
- 27
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TypeCellOS/BlockNote 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
TypeCellOS/BlockNote#2949 · 1 則留言 ·
維護者通常 3 天內回覆
-
a11y
難度 2/5 1-3 小時 新手友好度 68/100
TypeCellOS/BlockNote#2855 ·
維護者通常 3 天內回覆
-
a11y
難度 2/5 1-3 小時 新手友好度 62/100
TypeCellOS/BlockNote#2829 · 1 則留言 ·
維護者通常 3 天內回覆
-
a11y
難度 2/5 1-3 小時 新手友好度 72/100
TypeCellOS/BlockNote#2824 ·
維護者通常 3 天內回覆
-
a11y
難度 2/5 1-3 小時 新手友好度 68/100
TypeCellOS/BlockNote#2811 ·
維護者通常 3 天內回覆
查看 TypeCellOS/BlockNote 的全部 Issue
相似的 Issue
-
難度 1/5 1-3 小時 新手友好度 88/100
supabase/agent-skills#611 ·
-
難度 1/5 1 小時以內 新手友好度 68/100
polka-codes/test#345 ·
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 92/100
GoogleChromeLabs/project-sesame#217 ·
維護者通常 12 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
solana-foundation/solana-com#2202 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100