@@ -80,39 +80,37 @@ <h2>Contrast Color</h2>
80
80
< br >
81
81
< br >
82
82
83
- < mat-form-field >
83
+ < mat-form-field color ="primary ">
84
+ < mat-label > Primary Contrast Threshold</ mat-label >
84
85
< mat-select (ngModelChange) ="onChangeThresholdPrimary($event) "
85
86
[disabled] ="materialCssVarsService.isAutoContrast "
86
- [(ngModel)] ="materialCssVarsService.contrastColorThresholdPrimary "
87
- placeholder ="Threshold for primary contrast color ">
87
+ [(ngModel)] ="materialCssVarsService.contrastColorThresholdPrimary ">
88
88
< mat-option *ngFor ="let hue of hues "
89
89
[value] ="hue.value ">
90
90
{{hue.viewValue}}
91
91
</ mat-option >
92
92
</ mat-select >
93
93
</ mat-form-field >
94
94
< br >
95
- < br >
96
95
97
- < mat-form-field >
96
+ < mat-form-field color ="accent ">
97
+ < mat-label > Accent Contrast Threshold</ mat-label >
98
98
< mat-select (ngModelChange) ="onChangeThresholdAccent($event) "
99
99
[disabled] ="materialCssVarsService.isAutoContrast "
100
- [(ngModel)] ="materialCssVarsService.contrastColorThresholdAccent "
101
- placeholder ="Threshold for Accent contrast color ">
100
+ [(ngModel)] ="materialCssVarsService.contrastColorThresholdAccent ">
102
101
< mat-option *ngFor ="let hue of hues "
103
102
[value] ="hue.value ">
104
103
{{hue.viewValue}}
105
104
</ mat-option >
106
105
</ mat-select >
107
106
</ mat-form-field >
108
107
< br >
109
- < br >
110
108
111
- < mat-form-field >
109
+ < mat-form-field color ="warn ">
110
+ < mat-label > Warn Contrast Threshold</ mat-label >
112
111
< mat-select (ngModelChange) ="onChangeThresholdWarn($event) "
113
112
[disabled] ="materialCssVarsService.isAutoContrast "
114
- [(ngModel)] ="materialCssVarsService.contrastColorThresholdWarn "
115
- placeholder ="Threshold for Warn contrast color ">
113
+ [(ngModel)] ="materialCssVarsService.contrastColorThresholdWarn ">
116
114
< mat-option *ngFor ="let hue of hues "
117
115
[value] ="hue.value ">
118
116
{{hue.viewValue}}
@@ -122,7 +120,6 @@ <h2>Contrast Color</h2>
122
120
</ mat-card-content >
123
121
</ mat-card >
124
122
125
-
126
123
< mat-card class ="mat-elevation-z3 ">
127
124
< mat-card-content >
128
125
< h2 > Dark/Light</ h2 >
@@ -427,15 +424,17 @@ <h2>Material Buttons</h2>
427
424
< mat-card class ="input-section ">
428
425
< mat-card-content >
429
426
< h2 > Material Input</ h2 >
430
- < mat-form-field >
431
- < input matInput
432
- placeholder ="First name "/>
427
+ < mat-form-field color ="primary ">
428
+ < mat-label > First Name</ mat-label >
429
+ < input matInput placeholder ="Enter your first name "/>
430
+ < mat-hint align ="start "> This is a hint</ mat-hint >
433
431
</ mat-form-field >
434
- < mat-form-field >
432
+ < mat-form-field color ="accent ">
433
+ < mat-label > Nickname</ mat-label >
435
434
< input #nickname
436
435
matInput
437
436
maxlength ="50 "
438
- placeholder ="Nickname "/>
437
+ placeholder ="Enter your Nickname "/>
439
438
< mat-hint align ="end ">
440
439
{{nickname.value.length}} / 50
441
440
</ mat-hint >
@@ -444,16 +443,14 @@ <h2>Material Input</h2>
444
443
< mat-icon class ="input-icon "
445
444
matPrefix > android
446
445
</ mat-icon >
446
+ < mat-label > Phone Number</ mat-label >
447
447
< input matInput
448
- placeholder ="Favorite phone ">
448
+ placeholder ="Enter your favorite phone ">
449
449
</ mat-form-field >
450
- < mat-form-field >
451
-
452
- < mat-icon class ="input-icon "
453
- matPrefix > motorcycle
454
- </ mat-icon >
455
- < input matInput
456
- placeholder ="Motorcycle model ">
450
+ < mat-form-field color ="warn ">
451
+ < mat-icon class ="input-icon " matPrefix > motorcycle</ mat-icon >
452
+ < mat-label > Motorcycle Model</ mat-label >
453
+ < input matInput placeholder ="Motorcycle model ">
457
454
</ mat-form-field >
458
455
</ mat-card-content >
459
456
</ mat-card >
0 commit comments