@@ -102,27 +102,36 @@ $mat-list-item-inset-divider-offset: 72px;
102102 padding : 0 ;
103103 }
104104
105- // There can be a secondary item (e.g. avatar-icon, checkbox) at the start of the
106- // list-item. This means that there should be a padding for the mat-list-text on the start-side.
107- .mat-list-item-content .mat-list-text :not ( :nth-child ( 2 )) {
108- padding-right : 0 ;
109- padding-left : $mat-list-side-padding ;
105+ & .mat-list-item-with-avatar ,
106+ & . mat-list-option {
107+ .mat-list-item-content .mat-list-text {
108+ padding-right : 0 ;
109+ padding-left : $mat-list-side-padding ;
110110
111- [dir = ' rtl' ] & {
112- padding-right : $mat-list-side-padding ;
113- padding-left : 0 ;
111+ [dir = ' rtl' ] & {
112+ padding-right : $mat-list-side-padding ;
113+ padding-left : 0 ;
114+ }
114115 }
115- }
116116
117- // Reversed content is mainly used by the MatSelectionList for displaying the checkbox at the
118- // end of the list option. Since there is a secondary item (checkbox) at the end of the
119- // option, there needs to be a padding for the mat-list-text on the end-side.
120- .mat-list-item-content-reverse .mat-list-text :not ( :nth-child ( 2 )) {
121- padding-left : 0 ;
122- padding-right : $mat-list-side-padding ;
117+ // Reversed content is mainly used by the MatSelectionList for displaying the checkbox at the
118+ // end of the list option. Since there is a secondary item (checkbox) at the end of the
119+ // option, there needs to be a padding for the mat-list-text on the end-side.
120+ .mat-list-item-content-reverse .mat-list-text {
121+ padding-left : 0 ;
122+ padding-right : $mat-list-side-padding ;
123123
124- [dir = ' rtl' ] & {
125- padding-right : 0 ;
124+ [dir = ' rtl' ] & {
125+ padding-right : 0 ;
126+ padding-left : $mat-list-side-padding ;
127+ }
128+ }
129+ }
130+
131+ & .mat-list-item-with-avatar.mat-list-option {
132+ .mat-list-item-content-reverse .mat-list-text ,
133+ .mat-list-item-content .mat-list-text {
134+ padding-right : $mat-list-side-padding ;
126135 padding-left : $mat-list-side-padding ;
127136 }
128137 }
0 commit comments