|
8 | 8 | <div class="mat-input-infix" [class.mat-end]="align == 'end'">
|
9 | 9 | <ng-content selector="input, textarea"></ng-content>
|
10 | 10 |
|
11 |
| - <label class="mat-input-placeholder" |
12 |
| - [attr.for]="_mdInputChild.id" |
13 |
| - [class.mat-empty]="_mdInputChild.empty && !_shouldAlwaysFloat" |
14 |
| - [class.mat-focused]="_mdInputChild.focused" |
15 |
| - [class.mat-float]="_canPlaceholderFloat" |
16 |
| - [class.mat-accent]="dividerColor == 'accent'" |
17 |
| - [class.mat-warn]="dividerColor == 'warn'" |
18 |
| - *ngIf="_hasPlaceholder()"> |
19 |
| - <ng-content select="md-placeholder, mat-placeholder"></ng-content> |
20 |
| - {{_mdInputChild.placeholder}} |
21 |
| - <span class="mat-placeholder-required" *ngIf="_mdInputChild.required">*</span> |
22 |
| - </label> |
| 11 | + <span class="mat-input-placeholder-wrapper"> |
| 12 | + <label class="mat-input-placeholder" |
| 13 | + [attr.for]="_mdInputChild.id" |
| 14 | + [class.mat-empty]="_mdInputChild.empty && !_shouldAlwaysFloat" |
| 15 | + [class.mat-focused]="_mdInputChild.focused" |
| 16 | + [class.mat-float]="_canPlaceholderFloat" |
| 17 | + [class.mat-accent]="dividerColor == 'accent'" |
| 18 | + [class.mat-warn]="dividerColor == 'warn'" |
| 19 | + *ngIf="_hasPlaceholder()"> |
| 20 | + <ng-content select="md-placeholder, mat-placeholder"></ng-content> |
| 21 | + {{_mdInputChild.placeholder}} |
| 22 | + <span class="mat-placeholder-required" *ngIf="_mdInputChild.required">*</span> |
| 23 | + </label> |
| 24 | + </span> |
23 | 25 | </div>
|
24 | 26 |
|
25 | 27 | <div class="mat-input-suffix">
|
|
0 commit comments