docs-bug(CdkOverlay): Overlay scroll strategies do not work unless main body is the scroll
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
### Documentation Feedback
The documentation for CdkOverlay doesn't mention the ScrollStrategies only work if the `window` object is the one scrolling. As explained in this bug report: #6157 in order to make it work for other scrollable elements, one needs to use the `cdk-scrollable` attribute, but this is not mentioned in the documentation.
Could you add an explanation of it there?
Also, I notice even setting `cdk-scrollable` doesn't make the `block` strategy work with non-window scrolls. So I think even more documentation is missing about how to make all this work.
### Affected documentation page
https://material.angular.io/cdk/overlay/api
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la page de documentation de l’API CDK Overlay concernée à l’adresse https://material.angular.io/cdk/overlay/api et examinez le comportement décrit dans l’issue #6157. Documentez les exigences de cdk-scrollable et les limitations de la block strategy avec un défilement autre que celui de la fenêtre, afin que les utilisateurs puissent comprendre le fonctionnement de chaque stratégie de défilement.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 38/100