diff --git a/src/lib/card/card-header.html b/src/lib/card/card-header.html index ed75c30655f3..42cbd1b14252 100644 --- a/src/lib/card/card-header.html +++ b/src/lib/card/card-header.html @@ -1,4 +1,4 @@ - +
-
+ +
diff --git a/src/lib/list/list-item.html b/src/lib/list/list-item.html index 9eb276ea7304..1d1d09466fd4 100644 --- a/src/lib/list/list-item.html +++ b/src/lib/list/list-item.html @@ -5,7 +5,13 @@
-
+ select="[md-list-avatar], [md-list-icon], [mat-list-avatar], [mat-list-icon], + [mdListAvatar], [mdListIcon], [matListAvatar], [matListIcon]"> + + +
+ +
+ diff --git a/src/lib/list/list.md b/src/lib/list/list.md index 4833887ce1d0..a46f75f071d6 100644 --- a/src/lib/list/list.md +++ b/src/lib/list/list.md @@ -34,7 +34,7 @@ element in an ``. ```html - {{ link }} + {{ link }} @@ -43,7 +43,7 @@ element in an ``. ``` ### Multi-line lists -For lists that require multiple lines per item, annotate each line with an `md-line` attribute. +For lists that require multiple lines per item, annotate each line with an `mdLine` attribute. Whichever heading tag is appropriate for your DOM hierarchy should be used (not necessarily `

` as shown in the example). @@ -51,8 +51,8 @@ as shown in the example). -

{{message.from}}

-

+

{{message.from}}

+

{{message.subject}} -- {{message.content}}

@@ -62,24 +62,24 @@ as shown in the example). -

{{message.from}}

-

{{message.subject}}

-

{{message.content}}

+

{{message.from}}

+

{{message.subject}}

+

{{message.content}}

``` ### Lists with icons -To add an icon to your list item, use the `md-list-icon` attribute. +To add an icon to your list item, use the `mdListIcon` attribute. ```html - folder -

{{message.from}}

-

+ folder +

{{message.from}}

+

{{message.subject}} -- {{message.content}}

@@ -89,14 +89,14 @@ To add an icon to your list item, use the `md-list-icon` attribute. ### Lists with avatars -To include an avatar image, add an image tag with an `md-list-avatar` attribute. +To include an avatar image, add an image tag with an `mdListAvatar` attribute. ```html - ... -

{{message.from}}

-

+ ... +

{{message.from}}

+

{{message.subject}} -- {{message.content}}

@@ -121,23 +121,23 @@ to the main `md-list` tag. ### Lists with multiple sections -Subheader can be added to a list by annotating a heading tag with an `md-subheader` attribute. +Subheader can be added to a list by annotating a heading tag with an `mdSubheader` attribute. To add a divider, use ``. ```html -

Folders

+

Folders

- folder -

{{folder.name}}

-

{{folder.updated}}

+ folder +

{{folder.name}}

+

{{folder.updated}}

-

Notes

+

Notes

- note -

{{note.name}}

-

{{note.updated}}

+ note +

{{note.name}}

+

{{note.updated}}

``` diff --git a/src/lib/list/list.ts b/src/lib/list/list.ts index 48766a754ace..95ddd64788a8 100644 --- a/src/lib/list/list.ts +++ b/src/lib/list/list.ts @@ -108,7 +108,7 @@ export class MdListIconCssMatStyler {} * @docs-private */ @Directive({ - selector: '[md-subheader], [mat-subheader]', + selector: '[md-subheader], [mat-subheader], [mdSubheader], [matSubheader]', host: {'class': 'mat-subheader'} }) export class MdListSubheaderCssMatStyler {}