feature request/proposal
Allow other items/classes than matListAvatar and matListIcon in a mat-list-item to be aligned to the left
Looking at the html of list-item.html only the matListAvatar and matListIcon elements are aligned left.
StackBlitz starter (using latest npm release): https://stackblitz.com/edit/angular-material2-issue-x2ysgk?file=app/app.component.html
I want to have another item to be aligned left, in my case a mat-checkbox
I can make it work with adding a matListIcon to the mat-checkbox, but that feels weird. Another proposal would be to make a generic term, like matListItemLeft or something.
5.0.0
Supporting an attribute like matListItemLeft would be easy, but I'm not sure if the name is that good.
Maybe something like matAlignStart. It's important to use start and end instead of left/right, because it needs to work within RTL mode as well.
@DevVersion is there any reason you couldn't just use css to change this?
Most helpful comment
Supporting an attribute like
matListItemLeftwould be easy, but I'm not sure if the name is that good.Maybe something like
matAlignStart. It's important to usestartandendinstead ofleft/right, because it needs to work within RTL mode as well.