localgov icon indicating copy to clipboard operation
localgov copied to clipboard

CKeditor 5 tables are missing the scope attribute

Open RyanFH257 opened this issue 10 months ago • 8 comments

When you create a table using CKeditor 5, data cells marked up as table headers don't receive the scope attribute. This is neccessary to make the table fully accessible. The issue has been reported on Drupal.org, but the folks at CKeditor don't see it as a priority to fix.

https://www.drupal.org/project/drupal/issues/3427076

A workaround module has been developed that provides a text format filter to process the table and set the correct scope attribute on each table header element.

https://www.drupal.org/project/table_header_scope_attribute

At today's accessibility meet-up, Hannah at Brighton said they have also developed a text format filter that does a similar thing - @andybroomfield

RyanFH257 avatar Feb 06 '25 15:02 RyanFH257

We have a module that can do that and some other accessibility fixes if you want to take it forward @BHCC-hannahharvey.

andybroomfield avatar Feb 14 '25 10:02 andybroomfield

@andybroomfield I can package up our module and send it onwards.

@RyanFH257 - Its on my list to email you today following the accessibility meet-up :)

BHCC-hannahharvey avatar Feb 14 '25 11:02 BHCC-hannahharvey

This sounds like a great idea, especially the "and some other accessibility fixes" part. Looking forward to checking it out @BHCC-hannahharvey.

markconroy avatar Feb 15 '25 18:02 markconroy

@markconroy - Happy to send you over the code as well :)

BHCC-hannahharvey avatar Feb 17 '25 08:02 BHCC-hannahharvey

Please do. Thanks.

markconroy avatar Feb 20 '25 09:02 markconroy

@markconroy - Can you shoot me your email address please and I'll send the module over :-)

BHCC-hannahharvey avatar Feb 24 '25 17:02 BHCC-hannahharvey

Can you package it up as a .zip file and upload it here so others can see it too? If not, DM me on Slack and I'll send you my email.

markconroy avatar Feb 25 '25 09:02 markconroy

That would be better wouldn't it! Here is the .zip file - Any questions let me know :-)

bhcc_accessibility.zip

BHCC-hannahharvey avatar Feb 25 '25 09:02 BHCC-hannahharvey