We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 490b3b4 commit b5a768fCopy full SHA for b5a768f
src/lib/input/_input-theme.scss
@@ -6,17 +6,31 @@
6
7
8
@mixin mat-input-theme($theme) {
9
+ $primary: map-get($theme, primary);
10
+ $accent: map-get($theme, accent);
11
+ $warn: map-get($theme, warn);
12
$foreground: map-get($theme, foreground);
13
14
.mat-input-element:disabled {
15
color: mat-color($foreground, disabled-text);
16
}
17
18
.mat-input-element {
19
+ caret-color: mat-color($primary);
20
+
21
@include input-placeholder {
22
color: _mat-control-placeholder-color($theme);
23
24
25
26
+ .mat-accent .mat-input-element {
27
+ caret-color: mat-color($accent);
28
+ }
29
30
+ .mat-warn .mat-input-element,
31
+ .mat-form-field-invalid .mat-input-element {
32
+ caret-color: mat-color($warn);
33
34
35
36
@mixin mat-input-typography($config) {
0 commit comments