acc (screen reader mode) layout tables should include role="presentation"
-------------------------------------------------------------------------
Key: TRINIDAD-1696
URL: https://issues.apache.org/jira/browse/TRINIDAD-1696
Project: MyFaces Trinidad
Issue Type: Bug
Affects Versions: 1.2.12-core
Environment: all
Reporter: Dave Robinson
Priority: Minor
When using trh:tableLayout in our page to layout some UI components, it gives
warning during Accessibility testing:
"WARNING - This layout Table could be confused for a data table by Screen
Readers"
>From the html perspective, this warning can be fixed by setting
role="presentation"
on the html table element.
We can add
role="presentation" to layout tables with the following addition to
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.OutputTextUtils.renderLayoutTableAttributes():
if (CoreRenderer.isScreenReaderMode(arc))
{
ResponseWriter writer = context.getResponseWriter();
writer.writeAttribute("datatable", "0", null);
--> writer.writeAttribute("role", "presentation", null); <--
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.