-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Labels
bugSomething isn't workingSomething isn't working
Description
The Accordion block renders markup that violates the WAI-ARIA Authoring Practices and triggers accessibility checker errors. The block places aria-expanded on a non-interactive wrapper <div>.
These patterns cause automated tools (like Accessible Web Helper) to report errors like:
“Elements must only use supported ARIA attributes”
“ARIA attribute is not allowed: aria-expanded=”
Steps to Reproduce:
- Add a Stackable → Accordion block to a post/page.
- Publish and view the front-end.
- Toggle the accordion to update the aria-expanded attribute on the element.
- Run an accessibility audit with Accessible Web Helper extension.
Example rendered HTML (trimmed):
<div class="wp-block-ugb-accordion ugb-accordion ..." aria-expanded="false">
<div class="ugb-inner-block">
Actual Result
aria-expanded is applied to the outer <div class="wp-block-ugb-accordion ..."> (non-interactive).

Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working