summary-list component contains axe accessibility issue #2150
Labels
awaiting triage
Needs triaging by team
🐛 bug
Something isn't working the way it should (including incorrect wording in documentation)
Description of the issue
Using the summary-list component with multiple rows where some do not have actions; the component adds a span to those rows. This is considered a serious issue by the Axe accessibility tool, presenting the below error when using the axe-core chrome extension:
<dl> elements must only directly contain properly-ordered <dt> and <dd> groups, <script>, <template> or <div> elements
The section of the template relating to this is here.
The issue may be resolvable by using a div instead so long as the govuk-summary-list__actions class results in the elements rendering the same.
Steps to reproduce the issue
Use the summary-list component with multiple rows where some do not have actions. Using the axe-core chrome extension on the page that contains that component:
Actual vs expected behaviour
No accessibility issue.
Environment (where applicable)
I am using the below however the component remains the same in the current version of the toolkit and colleagues have witnessed the same behaviour on macOS Mojave, with other versions of Chrome.
The text was updated successfully, but these errors were encountered: