Skip to content

Cdk tree revamp tabindex #28136

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

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/cdk/a11y/key-manager/noop-tree-key-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ export class NoopTreeKeyManager<T extends TreeKeyManagerItem> implements TreeKey
return null;
}

onInitialFocus() {
// noop
}

focusItem() {
// noop
}
Expand Down
13 changes: 5 additions & 8 deletions src/cdk/a11y/key-manager/tree-key-manager-strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ export interface TreeKeyManagerItem {
* Focuses the item. This should provide some indication to the user that this item is focused.
*/
focus(): void;

/**
* Unfocus the item. This should remove the focus state.
*/
unfocus(): void;
}

/**
Expand Down Expand Up @@ -100,14 +105,6 @@ export interface TreeKeyManagerStrategy<T extends TreeKeyManagerItem> {
/** The currently active item. */
getActiveItem(): T | null;

/**
* Called the first time the Tree component is focused. This method will only be called once over
* the lifetime of the Tree component.
*
* Intended to be used to focus the first item in the tree.
*/
onInitialFocus(): void;

/**
* Focus the provided item by index.
*
Expand Down
Loading