-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Labels
AccessibilityThe issue/PR is related to accessibility.The issue/PR is related to accessibility.BugThe issue is a confirmed bug.The issue is a confirmed bug.Store FrontendIssues related to shop page.Issues related to shop page.
Description
Describe the bug
Whilst working on #60253, I noticed that we have several templates used to create notices:
templates/notices/
are used to render legacy notices in classic themes.templates/block-notices/
are used to render legacy notices in block themes.BlockTypes/StoreNotices.php
are the actual store notices blocks.
The latter of the three are missing any ARIA role
attributes.
Expected behavior
Notices should have appropriate role
attribute.
Actual behavior
role
attributes are missing.
Steps to reproduce
- Go to the checkout page.
- Trigger an error.
- Notice that
role
attribute is missing from the HTML.

Isolating the problem
- I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
- This bug happens with a default WordPress theme active, or Storefront.
- I can reproduce this bug consistently using the steps above.
Metadata
Metadata
Assignees
Labels
AccessibilityThe issue/PR is related to accessibility.The issue/PR is related to accessibility.BugThe issue is a confirmed bug.The issue is a confirmed bug.Store FrontendIssues related to shop page.Issues related to shop page.