Problem/Motivation

When using pa11y to run 508 scans we encountered this

This element's role is "presentation" but contains child elements with
semantic meaning.

(#block-prac-content > div > div > nav > ul > li:nth-child(10))

<li class="usa-nav__primary-item" role="presentation"><a>…</a></li>

Route cause is in the pager template there is an <a> tag being wrapped around the hellip.

Proposed resolution

Remove the <a> tag.

Issue fork uswds_base-3202144

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

smustgrave created an issue. See original summary.

smustgrave’s picture

Status: Active » Needs review
mferanda’s picture

This is also in Drupal Core in the Stark theme... where I copied some of the templates.

Perhaps something to report as a potential problem for a core theme?

I'll remove as it doesn't appear in other themes and I see no problem removing.

  • mferanda committed b7c7eed on 8.x-2.x authored by smustgrave
    Issue #3202144 by smustgrave: 508 Issue: element's role is "presentation...
mferanda’s picture

Status: Needs review » Patch (to be ported)
mferanda’s picture

Status: Patch (to be ported) » Fixed
mferanda’s picture

Status: Fixed » Closed (fixed)