Problem/Motivation

Currently H2s are used in the menu. How to avoid this as H2 should be part of the content of the page

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

skylarad created an issue. See original summary.

cilefen’s picture

Version: 10.0.x-dev » 9.1.x-dev
Assigned: skylarad » Unassigned
Category: Bug report » Support request
Issue summary: View changes
Status: Needs work » Active
Issue tags: -Currently H2s are used in the menu. How to avoid this as H2 should be part of the content of the page

What is the theme?

larowlan’s picture

This will be the hidden h2 for a11y reasons

rajab natshah’s picture

#2045039: Cleanup HTML heading structure

W3C Accessibility Standards Overview

Web Content Accessibility Guidelines (WCAG) 2.1

https://www.w3.org/TR/2018/REC-WCAG21-20180605/

  • Approach 1: Hiding the label element
  • Approach 2: Using aria-label
  • Approach 3: Using aria-labelledby
  • Approach 4: Using the title attribute

aria-label in the case of menu blocks
or aria-labelledby in the case of search box
https://www.w3.org/WAI/tutorials/forms/labels/

Adding visually hidden headings to complete a page's outline
https://www.accessibility-developer-guide.com/examples/headings/visually...

Techniques for WCAG 2.0

H42: Using h1-h6 to identify headings

https://www.w3.org/TR/WCAG-TECHS/H42.html

Not sure if menus were placed as a block in a region or a code call for the menu in TWIG
If blocks are using h3 by default in a custom theme or a sub theme
Should menus in blocks follow the H42: Using h1-h6 to identify headings

Version: 9.1.x-dev » 9.3.x-dev

Drupal 9.1.10 (June 4, 2021) and Drupal 9.2.10 (November 24, 2021) were the last bugfix releases of those minor version series. Drupal 9 bug reports should be targeted for the 9.3.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

cilefen’s picture

Status: Active » Closed (outdated)

I am closing this support request because there have been no recent comments.

The Drupal Core issue queue is not the ideal place for support requests. Consider other sources of support.