Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Table] Identify layout table #2908

Open
renow-luxembourg opened this issue Jan 17, 2025 · 0 comments
Open

[Table] Identify layout table #2908

renow-luxembourg opened this issue Jan 17, 2025 · 0 comments

Comments

@renow-luxembourg
Copy link
Contributor

renow-luxembourg commented Jan 17, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant