-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(material-experimental/mdc-list): fix styles for normal lists (#18632
) * fix(material-experimental/mdc-list): fix styles for normal lists Fixes up various styles for the lists under the "normal lists" section of the demo. There are still some issues around the avatars and dividers on the last list * fix avatars and dividers * fix lint and api * address feedback
- Loading branch information
Showing
12 changed files
with
216 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
src/components-examples/material/list/list-sections/list-sections-example.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<mat-list> | ||
<h3 mat-subheader>Folders</h3> | ||
<div mat-subheader>Folders</div> | ||
<mat-list-item *ngFor="let folder of folders"> | ||
<mat-icon mat-list-icon>folder</mat-icon> | ||
<h4 mat-line>{{folder.name}}</h4> | ||
<p mat-line> {{folder.updated | date}} </p> | ||
<div mat-line>{{folder.name}}</div> | ||
<div mat-line> {{folder.updated | date}} </div> | ||
</mat-list-item> | ||
<mat-divider></mat-divider> | ||
<h3 mat-subheader>Notes</h3> | ||
<div mat-subheader>Notes</div> | ||
<mat-list-item *ngFor="let note of notes"> | ||
<mat-icon mat-list-icon>note</mat-icon> | ||
<h4 mat-line>{{note.name}}</h4> | ||
<p mat-line> {{note.updated | date}} </p> | ||
<div mat-line>{{note.name}}</div> | ||
<div mat-line> {{note.updated | date}} </div> | ||
</mat-list-item> | ||
</mat-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
<ng-content select="[mat-list-avatar],[matListAvatar],[mat-list-icon],[matListIcon]"></ng-content> | ||
<span class="mdc-list-item__text"><ng-content></ng-content></span> | ||
<ng-content select="mat-divider"></ng-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.