Skip to content

[Table] Identify layout table #2908

Open
@renow-luxembourg

Description

Feature Request

In French-speaking countries, for accessibility audit we use the RGAA accessibility guidelines.

Is your feature request related to a problem? Please describe.
In the criteria 5.3, we test if each layout table (<table> only used to display information in cells) has an attribute role="presentation" to success.
This test failed :

  • if the table doesn't have the role="presentation"
  • if the table has a caption (<caption> tags)
  • if the table has headings (<th> tags)

In some of our website, redactors use table to diplay content in column. For those websites, in the Accessibility Audit, we get a fail due to the missing role attribute.

Describe the solution you'd like
The simplest solution will be to automatically add the role="presentation" attribute to the <table> element when the user choose the "None" option in the Header selector.
On top of that a layout table shouldn't contain any <caption> tag, so it will be nice to disable this field when "None" is selected in the Header selector.

Image

Are there alternatives?
We can also add a checkbox in the table tool to switch between data-table and layout-table.

Documentation

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions