Repository navigation
feat(labs): add aria accordion component - #6080
Open
copybara-service[bot] wants to merge 1 commit into
Open
copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
copybara-service
Bot
force-pushed
the
cl/994660525
branch
5 times, most recently
from
October 15, 2026 00:24
be738dc to
86c3811
Compare
This CL adds a new `<md-aria-accordion>` component, which implements the [accordion](https://www.w3.org/WAI/ARIA/apg/patterns/accordion/) and [disclosure](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/) design patterns. Both patterns toggle content visibility using an element with role `button` and manage its `aria-expanded` and `aria-controls` attributes, but the accordion pattern expects the button to be wrapped in a heading, which can be optionally specified using this component's `headingLevel` property. This element also follows conventions from `<details>`: the `open` property can be used to get or change the open state, the element dispatches a `toggle` event when opened or closed by the user, and the `name` property can be used to assign many accordion sections in the same tree to an exclusive group. PiperOrigin-RevId: 994660525
copybara-service
Bot
force-pushed
the
cl/994660525
branch
from
October 15, 2026 21:30
86c3811 to
51e5833
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(labs): add aria accordion component
This CL adds a new
<md-aria-accordion>component, which implements theaccordion and
disclosure design
patterns. Both patterns toggle content visibility using an element with role
buttonand manage itsaria-expandedandaria-controlsattributes, but theaccordion pattern expects the button to be wrapped in a heading, which can be
optionally specified using this component's
headingLevelproperty.This element also follows conventions from
<details>: theopenproperty canbe used to get or change the open state, the element dispatches a
toggleeventwhen opened or closed by the user, and the
nameproperty can be used to assignmany accordion sections in the same tree to an exclusive group.