Problem/Motivation

A page built with a Display Builder page layout has no main landmark and no target for the skip link, because the theme's page template is not used.

Steps to reproduce

  1. Build a page with Display Builder using this theme's Section component.
  2. Inspect the rendered markup: there is no <main> element and no id for the skip link to jump to.

Proposed resolution

Give the Section component a landmark option, so the section marked as the main content prints the main element with the id the skip link points to. Also raise the link, button and label colours to the WCAG AA minimum.

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ❌ UX/UI designer responsibilities
  • ❌ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes
  • ❌ Release

User interface changes

  • The Section component gains a landmark option; link, button and label colours pass WCAG AA contrast.

API changes

  • The Section component's Twig/props schema gains a landmark option.

Data model changes

  • N/A

Release notes snippet

  • The Section component can now mark itself as the page's main landmark; link, button and label colours meet WCAG AA contrast.

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.

  • rajab natshah committed 663fb4ad on 1.0.x
    feat: #3625728 Mark a section as the main content of the page