Skip to content

Commit 33506ab

Browse files
fix(input-group): prefix & suffix wrong colors (#12158)
* fix(input-group): prefix & suffix wrong colors * refactor(input-group): simplify placeholder selectors Co-authored-by: Simeon Simeonoff <[email protected]>
1 parent 383a7fc commit 33506ab

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

projects/igniteui-angular/src/lib/core/styles/components/input/_input-group-component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@
132132
}
133133

134134
@include m(filled) {
135+
@extend %form-group-display--filled !optional;
136+
135137
@include e(label) {
136138
@extend %form-group-label--float !optional;
137139
}
@@ -150,8 +152,6 @@
150152
}
151153

152154
@include m(invalid) {
153-
@extend %form-group-display--error !optional;
154-
155155
@include e(label) {
156156
@extend %form-group-label--error !optional;
157157
}

projects/igniteui-angular/src/lib/core/styles/components/input/_input-group-theme.scss

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -394,15 +394,12 @@
394394
}
395395
}
396396

397-
%form-group-display--error {
397+
%form-group-display--filled {
398398
igx-prefix,
399-
[igxPrefix] {
400-
@extend %form-group-prefix--error;
401-
}
402-
399+
[igxPrefix],
403400
igx-suffix,
404401
[igxSuffix] {
405-
@extend %form-group-suffix--error;
402+
@extend %form-group-prefix--filled;
406403
}
407404
}
408405

@@ -1426,9 +1423,8 @@
14261423
padding: 0;
14271424
}
14281425

1429-
%form-group-prefix--error,
1430-
%form-group-suffix--error {
1431-
color: var-get($theme, 'error-secondary-color');
1426+
%form-group-prefix--filled {
1427+
color: var-get($theme, 'filled-text-color');
14321428
}
14331429

14341430
%form-group-border {

0 commit comments

Comments
 (0)