File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -206,13 +206,8 @@ <h4>Textarea</h4>
206
206
Both:
207
207
< md-input-container align ="end ">
208
208
< input mdInput #email placeholder ="Email Address " value ="angular-core ">
209
- < span mdPrefix >
210
- < md-icon [class.primary] ="email.focused " class ="demo-icons demo-transform "> email</ md-icon >
211
-
212
- </ span >
213
- < span mdSuffix class ="demo-transform " [class.primary] ="email.focused ">
214
- @gmail.com
215
- </ span >
209
+ < span mdPrefix > < md-icon [class.primary] ="email.focused "> email</ md-icon > </ span >
210
+ < span mdSuffix [class.primary] ="email.focused "> @gmail.com</ span >
216
211
</ md-input-container >
217
212
</ p >
218
213
Original file line number Diff line number Diff line change @@ -234,8 +234,16 @@ $mat-input-underline-disabled-background-image:
234
234
}
235
235
}
236
236
237
- // Prevents the prefix and suffix from stretching together with the container.
238
237
.mat-input-prefix , .mat-input-suffix {
238
+ // Prevents the prefix and suffix from stretching together with the container.
239
239
width : 0.1px ;
240
240
white-space : nowrap ;
241
+
242
+ // Allow icons in a prefix/suffix to adapt to the correct size.
243
+ & .mat-icon {
244
+ width : auto ;
245
+ height : auto ;
246
+ font-size : 100% ;
247
+ vertical-align : top ;
248
+ }
241
249
}
You can’t perform that action at this time.
0 commit comments