When tables are used for layout purposes, we should add the WAI-ARIA presentation role attributes. Misinterpreting layout tables as data tables can confuse users who rely on assistive technologies. For example, a screen reader will interpret the element as a data table and announce the number of rows and columns and the content inside. By adding role=”presentation”, the screen reader will just read the elements making the content more accessible and easier to understand, without unnecessary information.
Created attachment 182801 [details] [review] Bug 39998: Add presentation role to the layout tables. This patch improves the accessibility of the OPAC. It's a trivial patch to help assistive technologies understand the different tables. Test plan: Enable the system preferences: OPACShelfBrowser, OPACPrivacy, ShowComponentRecords. 1- On the Koha OPAC, Research a record. 2- Inspect the result page HTML and notice that there is a role='presentation' in the table tag. 3- Choose a record with a Component section and inspect the HTML, there should be a role='presentation' in the table tag. 4- Open the Browse shelf. Inspect the HTML and notice that there is a role='presentation' in the table tag of the browse shelf. 5- Log in to a patron account, go to the Your Summary page, and choose Privacy in the menu. 6- Inspect the HTML of the page and notice that there is a role='presentation' in the table tag of the 'Immediate deletion'.
Created attachment 183284 [details] [review] Bug 39998: Add presentation role to the layout tables. This patch improves the accessibility of the OPAC. It's a trivial patch to help assistive technologies understand the different tables. Test plan: Enable the system preferences: OPACShelfBrowser, OPACPrivacy, ShowComponentRecords. 1- On the Koha OPAC, Research a record. 2- Inspect the result page HTML and notice that there is a role='presentation' in the table tag. 3- Choose a record with a Component section and inspect the HTML, there should be a role='presentation' in the table tag. 4- Open the Browse shelf. Inspect the HTML and notice that there is a role='presentation' in the table tag of the browse shelf. 5- Log in to a patron account, go to the Your Summary page, and choose Privacy in the menu. 6- Inspect the HTML of the page and notice that there is a role='presentation' in the table tag of the 'Immediate deletion'. Signed-off-by: Owen Leonard <oleonard@myacpl.org>
> 3- Choose a record with a Component section and inspect the HTML, there > should be a role='presentation' in the table tag. Bug 11175 has a sample record for this.