List structure: summary lists (WCAG 2.2 Level A - Accessibility) #3027
Labels
Accessibility
Issues discovered through accessibility testing
Enhancement
Change of existing feature
Milestone
Background
The eQ service identified this issue within the ONS Design System following their DAC audit report (18/01/2024).
Issue
List structure not properly represented to screen reader users within the markup.
The summary list of answers is marked up in a way which does not convey its structure properly to screen reader users. Although this appears as a single list to sighted users, it is represented as three separate definition lists to blind users, who may find it difficult to interpret the information as a result. This issue occurs because each row within the summary list is marked up within its own
<dl>
element.Screen reader user comments
When viewing the details that could be changed in the ‘Calculated distance on foot and driving’ section I became aware that each item was in its own list rather than all being in one list, given they all related to the same content.
This made the information time consuming to navigate as I had to navigate past the list markup for each separate piece of content. Making all the content into one list will ensure a much more logical user experience.
Suggested solution
Ensure that list structure is properly represented to screen reader users so that the information can be understood in the same way as by sighted users. In this case, we recommend merging the three definition lists into a single list with three items.
This can be achieved by grouping each question within a
div
element appearing as the direct descendent of thedl
element, to allow for further styling as per Summary list – GOV.UK Design System.Tasks
Info
The text was updated successfully, but these errors were encountered: