Description
Bug:
A list with icons, like here (https://material.angular.io/components/list/examples), has invalid padding as per spec (https://material.io/guidelines/components/lists.html#lists-specs).
What is the expected behavior?
The "Left icon padding" should be 16px
and the "Text padding, left" 72px
.
What is the current behavior?
Left icon padding:
mat-list-item-content
padding-left 16px
+
mat-list-icon
padding-left 4px
= mat-list-icon
is 20px
from side
Text padding left:
mat-list-item-content
padding-left 16px
+
mat-list-icon
padding-left 4px
+
mat-list-icon
width 24px
+
mat-list-icon
padding-right 4px
+
mat-list-text
padding-left 16px
= content of mat-list-text
is 64px
from side
Note: #9500 does not seem to change this
What are the steps to reproduce?
Forked from examples:
5.1.0: https://stackblitz.com/edit/angular-tfndqa-gwcrab?file=index.html
latest build 5.1.0-3352201: https://stackblitz.com/edit/angular-tfndqa-xpmt2u?file=index.html
The avatars line up with the subheaders with a padding of 16px
.
However the icons don't line up with the subheaders. Also the text right to the icons is not 72px
padded and therefore does not line up with the text of the avatars.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular/material": "^5.1.0"
and
"@angular/material": "angular/material-builds#5.1.0-3352201"