Skip to content

Improve table caption accessibility #41502

Open

Description

What problem does this address?

Table block originally implemented captions as figcaption elements, due to limitations with RichText output discussed here: #15554

These limitations no longer apply, so nothing prevents us from using an actual table caption element instead. This makes tables more accessible for screen readers, as the caption content will be announced at the start of the table.

What is your proposed solution?

Change the table block markup to use caption as first element within the table element, instead of the current figcaption.

Consider adding a default content to the caption, such as we have on Navigation block name: Table 1, Table 2, etc..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

[Block] TableAffects the Table Block[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Status] In ProgressTracking issues with work in progress

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions