Skip to content

Commit 944599c

Browse files
committed
fix(input-group): added warning border + box-shadow
1 parent 116bb88 commit 944599c

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,36 @@
10001000
}
10011001
}
10021002

1003+
@include mx(bootstrap, warning) {
1004+
@include e(input) {
1005+
@extend %bootstrap-input--warning !optional;
1006+
1007+
&:hover {
1008+
@extend %bootstrap-input--warning !optional;
1009+
}
1010+
}
1011+
1012+
@include e(file-input) {
1013+
@extend %bootstrap-input--warning !optional;
1014+
1015+
&:hover {
1016+
@extend %bootstrap-input--warning !optional;
1017+
}
1018+
}
1019+
1020+
@include e(label) {
1021+
@extend %bootstrap-label !optional;
1022+
}
1023+
1024+
@include e(textarea) {
1025+
@extend %bootstrap-input--warning !optional;
1026+
1027+
&:hover {
1028+
@extend %bootstrap-input--warning !optional;
1029+
}
1030+
}
1031+
}
1032+
10031033
@include mx(bootstrap, textarea-group) {
10041034
@include e(bundle) {
10051035
@extend %form-group-bundle-bootstrap--textarea !optional;

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,6 +2232,18 @@
22322232
}
22332233
}
22342234

2235+
%bootstrap-input--warning {
2236+
border: rem(1px) solid var-get($theme, 'warning-secondary-color');
2237+
2238+
&:focus {
2239+
box-shadow: 0 0 0 rem(4px) color($color: 'warn', $variant: 500, $opacity: 0.38);
2240+
2241+
+ %bootstrap-file-input {
2242+
box-shadow: 0 0 0 rem(4px) color($color: 'warn', $variant: 500, $opacity: 0.38);
2243+
}
2244+
}
2245+
}
2246+
22352247
%bootstrap-input--disabled {
22362248
background: var-get($theme, 'border-disabled-background');
22372249
border: rem(1px) solid var-get($theme, 'disabled-border-color');

0 commit comments

Comments
 (0)