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 b5b39eb commit 1eb8450Copy full SHA for 1eb8450
src/lib/input/_input-theme.scss
@@ -6,6 +6,9 @@
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
$is-dark-theme: map-get($theme, is-dark);
14
@@ -14,10 +17,21 @@
17
}
15
18
16
19
.mat-input-element {
20
+ caret-color: mat-color($primary);
21
+
22
@include input-placeholder {
23
color: _mat-control-placeholder-color($theme);
24
25
26
27
+ .mat-accent .mat-input-element {
28
+ caret-color: mat-color($accent);
29
+ }
30
31
+ .mat-warn .mat-input-element,
32
+ .mat-form-field-invalid .mat-input-element {
33
+ caret-color: mat-color($warn);
34
35
36
37
@mixin mat-input-typography($config) {
0 commit comments