Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Use the main element in all block templates #10557

@carolinan

Description

@carolinan

Describe the bug

The cart and checkout templates should use the <main> HTML element as the outer wrapper instead of a <div>.

  • The order confirmation template already uses the main element.

To reproduce

Steps to reproduce the behavior:

  1. Open each template in the Site Editor
  2. Select the outer group block and all the inner blocks and confirm neither uses the <main> HTML element.

Expected behavior

Each template must have one <main> element.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/main_role

Environment

WordPress (please complete the following information):

  • WordPress version: 6.3.0
  • WooCommerce version: 8.

Desktop (please complete the following information):

  • OS: macOS
  • Browser Chrome

Metadata

Metadata

Assignees

Labels

type: community contributiontype: enhancementThe issue is a request for an enhancement.type: good first issueThe issue is a good candidate for the first community contribution/for a newcomer to the team.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions