Fix duplicate footer contentinfo landmark (high-confidence a11y)#5639
Fix duplicate footer contentinfo landmark (high-confidence a11y)#5639accesswatch wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR makes a narrowly scoped accessibility fix in the az_barrio page template by removing a duplicate nested contentinfo landmark while preserving the semantic outer footer landmark.
Changes:
- Removed
role="contentinfo"from the inner footer wrapper. - Kept
<footer class="site-footer">as the single contentinfo region.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Remove nested role=contentinfo inside footer wrapper to keep a single top-level contentinfo landmark and reduce repeated landmark violations. Estimated impact from known scan: addresses landmark-contentinfo-is-top-level (100) and landmark-no-duplicate-contentinfo (99), roughly 199 findings (~40% of the prior 500). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use semantic list markup for submenu containers in main navigation template and add explicit primary navigation landmark label in page layout. This is a scoped, high-confidence accessibility fix pass to reduce list and landmark uniqueness violations without altering business logic. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ed1d090 to
9b1d4ff
Compare
joeparsons
left a comment
There was a problem hiding this comment.
Overall these changes look good to me. We'll just want to revert the changes to the composer audit job in the CI workflow before merging.
|
Tugboat has finished building the preview for this pull request! Link: Dashboard: |
| {% if menu_level == 0 %} | ||
| </li> | ||
| {% else %} | ||
| </li> |
There was a problem hiding this comment.
If both if/else cases result in <li>, if-else isn't needed here.
|
|
||
| <footer class="site-footer"> | ||
| {% if page.footer or page.footer_sub or footer_logo %} | ||
| <div class="text-bg-warm-gray py-5" role="contentinfo"> |
There was a problem hiding this comment.
I'm a little confused; the PR description says:
Removed nested
role="contentinfo"inside footer wrapper.
But it still appears here with no change.
Looking at main's version of page.html.twig doesn't seem to show a duplicate role="contentinfo". Does that mean this PR's description and title is outdated?
From what I can tell, the changes here are unrelated to the footer landmark. If that's the case, I'd suggest updating the title and description to more accurately reflect the changes within (i.e., remove references to footer landmark changes since there are none here).
What changed
themes/custom/az_barrio/templates/layout/page.html.twigrole="contentinfo"inside footer wrapper.aria-label="Primary navigation"to top navigation landmark.themes/custom/az_barrio/templates/navigation/menu--main.html.twig<div class="dropdown-menu">with semantic<ul class="dropdown-menu">.<li>), preserving existing menu behavior.Why this is high-confidence
Estimated impact (from known 500-finding snapshot)
landmark-contentinfo-is-top-level: 100 (directly targeted)landmark-no-duplicate-contentinfo: 99 (directly targeted)list: up to 99 (directly targeted by submenu list semantics)landmark-unique: partial expected via explicit primary nav landmark labeling (exact reduction to confirm by re-scan)Practical projection
landmark-uniquefindingsChanged files in this PR
themes/custom/az_barrio/templates/...)