@@ -27,7 +27,9 @@ <h4>Advanced</h4>
27
27
< mat-chip color ="warn " selected ="true " *ngIf ="visible "
28
28
(destroyed) ="displayMessage('chip destroyed') " (removed) ="toggleVisible() ">
29
29
With Events
30
- < mat-icon matChipRemove > cancel</ mat-icon >
30
+ < button matChipRemove >
31
+ < mat-icon > cancel</ mat-icon >
32
+ </ button >
31
33
</ mat-chip >
32
34
</ mat-chip-list >
33
35
< div > {{message}}</ div >
@@ -39,12 +41,16 @@ <h4>With avatar and icons</h4>
39
41
< mat-chip disabled >
40
42
< mat-icon matChipAvatar > home</ mat-icon >
41
43
Home
42
- < mat-icon matChipRemove > cancel</ mat-icon >
44
+ < button matChipRemove >
45
+ < mat-icon > cancel</ mat-icon >
46
+ </ button >
43
47
</ mat-chip >
44
48
< mat-chip color ="accent " selected ="true ">
45
49
< mat-chip-avatar > P</ mat-chip-avatar >
46
50
Portel
47
- < mat-icon matChipRemove > cancel</ mat-icon >
51
+ < button matChipRemove >
52
+ < mat-icon > cancel</ mat-icon >
53
+ </ button >
48
54
</ mat-chip >
49
55
50
56
< mat-chip >
@@ -54,7 +60,9 @@ <h4>With avatar and icons</h4>
54
60
55
61
< mat-chip >
56
62
Koby
57
- < mat-icon matChipRemove > cancel</ mat-icon >
63
+ < button matChipRemove >
64
+ < mat-icon > cancel</ mat-icon >
65
+ </ button >
58
66
</ mat-chip >
59
67
60
68
< mat-chip >
@@ -69,7 +77,9 @@ <h4>With avatar and icons</h4>
69
77
< mat-chip selected ="true " color ="warn ">
70
78
< img src ="https://material.angularjs.org/material2_assets/ngconf/Husi.png " matChipAvatar >
71
79
Husi
72
- < mat-icon matChipRemove > cancel</ mat-icon >
80
+ < button matChipRemove >
81
+ < mat-icon > cancel</ mat-icon >
82
+ </ button >
73
83
</ mat-chip >
74
84
75
85
< mat-chip >
@@ -104,7 +114,9 @@ <h4>Form Field</h4>
104
114
< mat-chip *ngFor ="let person of people " [color] ="color " [selectable] ="selectable "
105
115
[removable] ="removable " (removed) ="remove(person) ">
106
116
{{person.name}}
107
- < mat-icon matChipRemove *ngIf ="removable "> cancel</ mat-icon >
117
+ < button matChipRemove *ngIf ="removable ">
118
+ < mat-icon > cancel</ mat-icon >
119
+ </ button >
108
120
</ mat-chip >
109
121
< input placeholder ="New Contributor... "
110
122
[matChipInputFor] ="chipList1 "
@@ -127,7 +139,9 @@ <h4>Form Field</h4>
127
139
< mat-chip *ngFor ="let person of people " [color] ="color " [selectable] ="selectable "
128
140
[removable] ="removable " (removed) ="remove(person) ">
129
141
{{person.name}}
130
- < mat-icon matChipRemove *ngIf ="removable "> cancel</ mat-icon >
142
+ < button matChipRemove *ngIf ="removable ">
143
+ < mat-icon > cancel</ mat-icon >
144
+ </ button >
131
145
</ mat-chip >
132
146
</ mat-chip-list >
133
147
< input placeholder ="New Contributor... "
@@ -148,7 +162,9 @@ <h4>Form Field</h4>
148
162
< mat-chip *ngFor ="let person of people " [color] ="color " [selectable] ="selectable "
149
163
[removable] ="removable " (removed) ="remove(person) ">
150
164
{{person.name}}
151
- < mat-icon matChipRemove *ngIf ="removable "> cancel</ mat-icon >
165
+ < button matChipRemove *ngIf ="removable ">
166
+ < mat-icon > cancel</ mat-icon >
167
+ </ button >
152
168
</ mat-chip >
153
169
</ mat-chip-list >
154
170
</ mat-form-field >
@@ -185,7 +201,9 @@ <h4>NgModel with chip list</h4>
185
201
< mat-chip *ngFor ="let aColor of availableColors " [color] ="aColor.color "
186
202
[value] ="aColor.name " (removed) ="removeColor(aColor) ">
187
203
{{aColor.name}}
188
- < mat-icon matChipRemove > cancel</ mat-icon >
204
+ < button matChipRemove >
205
+ < mat-icon > cancel</ mat-icon >
206
+ </ button >
189
207
</ mat-chip >
190
208
</ mat-chip-list >
191
209
@@ -196,7 +214,9 @@ <h4>NgModel with single selection chip list</h4>
196
214
< mat-chip *ngFor ="let aColor of availableColors " [color] ="aColor.color "
197
215
[value] ="aColor.name " (removed) ="removeColor(aColor) ">
198
216
{{aColor.name}}
199
- < mat-icon matChipRemove > cancel</ mat-icon >
217
+ < button matChipRemove >
218
+ < mat-icon > cancel</ mat-icon >
219
+ </ button >
200
220
</ mat-chip >
201
221
</ mat-chip-list >
202
222
0 commit comments