File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
universal-app/kitchen-sink Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
< table style ="width: 100% " cellspacing ="0 "> < tr >
10
10
< td >
11
- < mat-form-field style ="width: 100% " floatPlaceholder ="never ">
11
+ < mat-form-field style ="width: 100% " floatLabel ="never ">
12
12
< input matInput placeholder ="First name ">
13
13
</ mat-form-field >
14
14
</ td >
@@ -304,11 +304,18 @@ <h4>Textarea</h4>
304
304
</ p >
305
305
306
306
< p >
307
- < mat-form-field [floatPlaceholder ] ="floatingLabel ">
307
+ < mat-form-field [floatLabel ] ="floatingLabel ">
308
308
< input matInput placeholder ="Placeholder ">
309
309
</ mat-form-field >
310
310
</ p >
311
311
312
+ < p >
313
+ < mat-form-field [floatLabel] ="floatingLabel ">
314
+ < mat-label > What is your favorite color?</ mat-label >
315
+ < input matInput type ="color " value ="#00ff00 ">
316
+ </ mat-form-field >
317
+ </ p >
318
+
312
319
< p >
313
320
< mat-form-field >
314
321
< input matInput placeholder ="Prefixed " value ="example ">
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import {MAT_INPUT_VALUE_ACCESSOR} from './input-value-accessor';
31
31
const MAT_INPUT_INVALID_TYPES = [
32
32
'button' ,
33
33
'checkbox' ,
34
- 'color' ,
35
34
'file' ,
36
35
'hidden' ,
37
36
'image' ,
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ <h2>Icon</h2>
103
103
104
104
< h2 > Input</ h2 >
105
105
106
- < mat-form-field floatPlaceholder ="never ">
106
+ < mat-form-field floatLabel ="never ">
107
107
< input matInput placeholder ="name ">
108
108
</ mat-form-field >
109
109
You can’t perform that action at this time.
0 commit comments