-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/listdocsThis issue is related to documentationThis issue is related to documentation
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
No response
Description
Adding an IconButton with matListItemMeta directive into the multine list item causes incorrect rendering of the hover shadow (see the screeshot attached)
<mat-list>
<mat-list-item>
<span matListItemTitle>Incorrect Trailing Icon 1</span>
<span matListItemLine>Second line</span>
<span matListItemLine>Third line</span>
<button matIconButton matListItemMeta>
<mat-icon>info</mat-icon>
</button>
</mat-list-item>
</mat-list>
Reproduction
StackBlitz link: https://stackblitz.com/edit/hexovpvm?file=src%2Fexample%2Flist-variants-example.html,src%2Fexample%2Flist-variants-example.ts&startScript=start
Steps to reproduce:
- Hover over the IconButton next to the first two list items. Notice, that the icon isn't centered
- Hover over the IconButton next to the last list item. Notice, that in case of one-line list items the icon is rendered correctly
Expected Behavior
The icon should always be centered inside hover shadow
Actual Behavior
The icon isn't centered inside hover shadow
Environment
- Angular: 20.2.8
- CDK/Material: 20
- Browser(s): chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS
popovicsandras, ryuran, kainiedziela and soumyajit-dev
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/listdocsThis issue is related to documentationThis issue is related to documentation