angular / angular/components

CDK Virtual Scroll Viewport with CDK A11y ActiveDescendantKeyManager

Open
#14,516 9 comments 23 reactions 0 assignees View on GitHub
area: cdk/scrolling feature P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

#### What is the expected behavior?

Virtual Scroll to work with CDK A11y ActiveDescendantKeyManager

#### What is the current behavior?

Since virtual scroll only loads partial information and loads more when you scroll (recycling the view), ActiveDescendantKeyManager only get the indexes of the current items loaded by the . As I load more, the indexes repeats themselves, since the virtual scroll adds and deletes items

#### What are the steps to reproduce?

https://stackblitz.com/edit/angular-zmawwx

Contributor guide

Open the contributing guide

Research direction

Start with the linked StackBlitz reproduction and trace how the CDK virtual scroll viewport exposes items to ActiveDescendantKeyManager. Compare the visible-item recycling behavior with the key manager's index handling. Done means the key manager continues to work as virtual scrolling loads more items without repeated indexes, with the reproduction confirming the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
accessibility, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.