Skip to content

Fix duplicate footer contentinfo landmark (high-confidence a11y)#5639

Open
accesswatch wants to merge 3 commits into
mainfrom
accessibility-fixes-high-confidence
Open

Fix duplicate footer contentinfo landmark (high-confidence a11y)#5639
accesswatch wants to merge 3 commits into
mainfrom
accessibility-fixes-high-confidence

Conversation

@accesswatch
Copy link
Copy Markdown
Contributor

@accesswatch accesswatch commented May 28, 2026

What changed

  1. themes/custom/az_barrio/templates/layout/page.html.twig
    • Removed nested role="contentinfo" inside footer wrapper.
    • Added explicit aria-label="Primary navigation" to top navigation landmark.
  2. themes/custom/az_barrio/templates/navigation/menu--main.html.twig
    • Replaced submenu container <div class="dropdown-menu"> with semantic <ul class="dropdown-menu">.
    • Ensured submenu items are rendered as list items (<li>), preserving existing menu behavior.

Why this is high-confidence

  • Changes are structural/semantic only (landmarks + list semantics).
  • No business logic or data flow changes.
  • Scope is limited to shared theme templates.

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

  • High-confidence directly targeted findings: up to 298 (199 landmark + up to 99 list)
  • Additional likely reduction: subset of 99 landmark-unique findings

Changed files in this PR

  • 2 files updated (all in themes/custom/az_barrio/templates/...)

@accesswatch accesswatch requested a review from a team as a code owner May 28, 2026 01:08
Copilot AI review requested due to automatic review settings May 28, 2026 01:08
@accesswatch accesswatch requested a review from a team as a code owner May 28, 2026 01:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

accesswatch and others added 3 commits May 27, 2026 19:34
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>
@accesswatch accesswatch force-pushed the accessibility-fixes-high-confidence branch from ed1d090 to 9b1d4ff Compare May 28, 2026 02:37
@az-digital-bot
Copy link
Copy Markdown
Contributor

Tugboat has finished building the preview for this pull request!

Link:

Dashboard:

Comment thread .github/workflows/ci.yml
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're addressing the composer audit issue in a separate PR: #5657

Comment thread .github/workflows/ci.yml
Comment on lines +179 to +190
set +e
composer audit --no-dev --ignore-severity=low --ignore-severity=moderate > composer-audit.log 2>&1
composer_audit_status=$?
cat composer-audit.log
if [ "$composer_audit_status" -eq 0 ]; then
exit 0
fi
if [ "$composer_audit_status" -eq 2 ] && grep -q "No security vulnerability advisories found." composer-audit.log; then
echo "Composer audit reported only abandoned packages; continuing."
exit 0
fi
exit "$composer_audit_status"
Copy link
Copy Markdown
Member

@joeparsons joeparsons May 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
set +e
composer audit --no-dev --ignore-severity=low --ignore-severity=moderate > composer-audit.log 2>&1
composer_audit_status=$?
cat composer-audit.log
if [ "$composer_audit_status" -eq 0 ]; then
exit 0
fi
if [ "$composer_audit_status" -eq 2 ] && grep -q "No security vulnerability advisories found." composer-audit.log; then
echo "Composer audit reported only abandoned packages; continuing."
exit 0
fi
exit "$composer_audit_status"
composer audit --no-dev --ignore-severity=low --ignore-severity=moderate --abandoned=report

Copy link
Copy Markdown
Member

@joeparsons joeparsons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@joeparsons joeparsons added bug Something isn't working user experience Improvements to user experience labels May 29, 2026
@joeparsons joeparsons added the patch release Issues to be included in the next patch release label May 29, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Needs review in 3.3.7 bug-fix patch release May 29, 2026
@joeparsons joeparsons moved this from Needs review to In Progress in 3.3.7 bug-fix patch release May 29, 2026
@joeparsons joeparsons moved this from Needs review to In Progress in 3.4.1 bug-fix patch release May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility bug Something isn't working patch release Issues to be included in the next patch release user experience Improvements to user experience

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

5 participants