-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
base: main
Are you sure you want to change the base?
Conversation
expect(panelPatterns[1].hidden()).toBeFalse(); | ||
}); | ||
|
||
it('collaps a panel without affecting other panels.', () => { |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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
No description provided.