Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/dev-app/list/list-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,17 @@ <h2>Icon alignment in selection list</h2>
Fries
</mat-list-option>
</mat-selection-list>


<h4>Hidden selector and single selection</h4>

<mat-selection-list [multiple]="false" hideSingleSelectionIndicator>
<mat-list-option [togglePosition]="togglePosition">
Boots
<mat-icon matListItemIcon>chevron_right</mat-icon>
</mat-list-option>
<mat-list-option [togglePosition]="togglePosition"> Shoes </mat-list-option>
</mat-selection-list>

<button matButton="elevated" (click)="toggleCheckboxPosition()">
Toggle checkbox position
</button>
Expand Down
9 changes: 6 additions & 3 deletions src/material/list/_list-inherited-structure.scss
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,14 @@ $fallbacks: m3-list.get-tokens();

.mdc-list-item--with-trailing-icon {
&.mdc-list-item {
// This is the same in RTL, but we need the specificity.
&, [dir='rtl'] & {
padding-left: 0;
& {
padding-right: 0;
}

[dir='rtl'] & {
padding-left: 0;
padding-right: 16px;
}
}

.mdc-list-item__end {
Expand Down