Skip to content

feat(cdk-experimental/ui-patterns): accordion #31034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ok7sai
Copy link
Contributor

@ok7sai ok7sai commented May 6, 2025

No description provided.

@ok7sai ok7sai requested a review from wagnermaciel May 6, 2025 02:17
@ok7sai ok7sai requested a review from a team as a code owner May 6, 2025 02:17
@ok7sai ok7sai requested review from adolgachev and removed request for a team May 6, 2025 02:17
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label May 6, 2025
expect(panelPatterns[1].hidden()).toBeFalse();
});

it('collaps a panel without affecting other panels.', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "collapse"


/** The keydown event manager for the accordion trigger. */
keydown = computed(() => {
const manager = new KeyboardEventManager()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: return new Keyboard...

expanded = computed(() => this.expansionControl.visible());

/** Id of the accordion panel controlled by the trigger. */
controls = computed(() => this.expansionControl.controls());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

controls sounds like this contains an array of controllers for this accordion. We should use a different name for this (both here and for the ExpansionControl class). Something like expansionPanelId to clearly indicate what this is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
detected: feature PR contains a feature commit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants