Problem/Motivation

A WCAG 2.2 AA pass over a fresh Drupal CMS install of RightUp (axe-core 4.13 on all 41 anonymous pages, plus keyboard, reflow and target-size probes) found two things in the theme:

  • 2.5.8 Target Size (Minimum) — every Live Feed ticker link is 19px tall. Each is its own pointer target, so it needs 24 CSS px.
  • 1.3.1 / 2.4.1 — the main menu is placed three times (header, menu panel, footer) and menu--main.html.twig renders each as an unlabelled <nav>. A screen reader lists three identical "navigation" landmarks. axe: landmark-unique on every page.

Skip link, focus visibility on 40 tab stops per page, offcanvas focus handling and Escape, 320px reflow and the audio player controls all pass.

Proposed resolution

  • .live-feed-item { min-block-size: 1.5rem }.
  • Make the block wrapper the landmark: block--system-menu-block.html.twig renders <nav aria-label="{{ configuration.label }}"> and the navbar inside becomes a <div>. Each placement is then named by its block label; the recipe gives the panel and footer copies their own labels.

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ❌ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Release

User interface changes

  • None visible; landmark names and target heights only.

API changes

  • N/A

Data model changes

  • N/A

AI-Generated: Yes

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

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Status: Active » Needs review

Scope note: the landmark fix stays in Twig. The three copies of the main menu still announce alike, because Canvas does not pass a block instance label through to the block (a throwaway label never rendered, and the block never reaches preprocess_block). No JavaScript workaround. Distinct labels are in the recipe (#3625206) for when Canvas exposes the label input (#3572850).

  • rajab natshah committed 0324e904 on 1.0.x
    fix: #3625205 WCAG 2.2: 24px ticker targets and named navigation...
rajab natshah’s picture

Status: Needs review » Fixed
Issue tags: +vartheme_bs5_rightup-1.0.0-beta1

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.