Skip to content

Drop Collapse trigger .collapsed state and rely on aria-expanded#42740

Open
julien-deramond wants to merge 1 commit into
v6-devfrom
v6-dev-jd-drop-collapsed-class-from-collapse-component
Open

Drop Collapse trigger .collapsed state and rely on aria-expanded#42740
julien-deramond wants to merge 1 commit into
v6-devfrom
v6-dev-jd-drop-collapsed-class-from-collapse-component

Conversation

@julien-deramond

@julien-deramond julien-deramond commented Jul 23, 2026

Copy link
Copy Markdown
Member

Description

This PR removes the Collapse plugin’s dependency on the trigger .collapsed class and standardizes trigger state on aria-expanded.

aria-expanded already represents the canonical open/closed state, while .collapsed was redundant and could drift from accessibility/state logic in custom scripts and selectors. This change simplifies the API surface, keeps behavior aligned with accessible state, and updates tests/docs/examples accordingly.

Live previews

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

1 participant