File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ <h2>Nav lists</h2>
107107 < div >
108108 < h2 > Action list</ h2 >
109109 < mat-action-list >
110- < button mat-list-item *ngFor ="let link of links " (click) ="alertItem(link.name) ">
110+ < button mat-list-item *ngFor ="let link of links " (click) ="alertItem(link.name) ">
111111 {{link.name}}
112112 </ button >
113113 </ mat-action-list >
Original file line number Diff line number Diff line change @@ -50,9 +50,7 @@ Simple action lists can use the `mat-list-item` attribute on button tag elements
5050
5151``` html
5252<mat-action-list >
53- <button mat-list-item *ngFor =" let link of links" (click) =" alertItem(link.name)" >
54- {{link.name}}
55- </button >
53+ <button mat-list-item *ngFor =" let link of links" > {{link.name}} </button >
5654</mat-action-list >
5755```
5856
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ $mat-list-item-inset-divider-offset: 72px;
263263}
264264
265265mat-action-list {
266- // remove the native button look and make is look like a list item
266+ // remove the native button look and make it look like a list item
267267 button {
268268 background : none ;
269269 color : inherit ;
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ describe('MatList', () => {
145145 items . forEach ( item => expect ( item . _isRippleDisabled ( ) ) . toBe ( true ) ) ;
146146 } ) ;
147147
148- it ( 'action list should be created successfully ' , ( ) => {
148+ it ( 'should create an action list ' , ( ) => {
149149 let fixture = TestBed . createComponent ( ActionListWithOneItem ) ;
150150 fixture . detectChanges ( ) ;
151151
@@ -207,7 +207,7 @@ class NavListWithOneAnchorItem extends BaseTestList {
207207@Component ( { template : `
208208 <mat-action-list>
209209 <button mat-list-item>
210- Paprika
210+ Paprika
211211 </button>
212212 </mat-action-list>` } )
213213class ActionListWithOneItem extends BaseTestList {
You can’t perform that action at this time.
0 commit comments