bug(menu): Overflow behaviour does not match the documentation
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
### Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
14
### Description
The behaviour when a menu button label has a long work (that can't be broken) is different in a newly created app than on the Angular Material demo page.
The `overflow: hidden` on `.mdc-list-item__primary-text` appears to be missing.
Material documentation page edited to make the label longer:

App that copies the same code:

### Reproduction
Steps to reproduce:
1. https://components-issue-5kgmsj.stackblitz.io (this is a copy of the code from the `basic menu` example but with a long label)
2. click to open the menu
3. the label overflows the content instead of getting an ellipsis
### Expected Behavior
Ellipsis
### Actual Behavior
Overflows
### Environment
- Angular: 15.2.3
- CDK/Material: 15.2.3
- Browser(s): all
- Operating System (e.g. Windows, macOS, Ubuntu): mac
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par l’implémentation du menu Angular Material et ses styles, en recherchant `.mdc-list-item__primary-text` ainsi que l’exemple de menu de base référencé dans le rapport. Reproduisez le libellé long qui ne peut pas être coupé dans l’application StackBlitz liée et comparez-le avec la démonstration de la documentation. C’est terminé lorsque le libellé est tronqué avec des points de suspension au lieu de déborder.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- Une demi-journée
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100