Skip to content

Commit 44d6711

Browse files
refactor(input-group): input refinement (#16307)
* refactor(input-group): input refinement * refactor(input-group): address review comments * fix(input-group): helper text issue * Update _core.scss --------- Co-authored-by: Simeon Simeonoff <[email protected]>
1 parent 06b8a51 commit 44d6711

File tree

20 files changed

+114
-45
lines changed

20 files changed

+114
-45
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@
135135
"karma-parallel": "^0.3.1",
136136
"karma-spec-reporter": "^0.0.36",
137137
"lit-html": "^3.2.1",
138-
"node-watch": "^0.7.4",
139138
"ng-packagr": "^20.0.0",
139+
"node-watch": "^0.7.4",
140140
"postcss": "^8.5.1",
141141
"postcss-scss": "^4.0.6",
142142
"prettier": "^3.3.3",

projects/igniteui-angular/src/lib/combo/themes/_base.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ $theme: $base;
6363
position: relative;
6464
}
6565

66-
&:has(.igx-vhelper--vertical) {
67-
display: grid;
68-
grid-template-columns: 1fr auto;
69-
}
70-
7166
position: relative;
7267
overflow: hidden;
7368
max-height: calc(var(--size) * var(--item-count));

projects/igniteui-angular/src/lib/combo/themes/shared/bootstrap.scss

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,40 @@ $_theme: $bootstrap;
88
@include themed-block(igx-combo, bootstrap) {
99
@include e(search) {
1010
--igx-input-group-border-border-radius: 0;
11-
--igx-input-group-border-color: transparent;
11+
12+
igx-input-group {
13+
--size: #{rem(28px)};
14+
}
1215

1316
.igx-input-group--focused {
1417
.igx-input-group__bundle-start,
1518
.igx-input-group__bundle-end {
1619
border-block-end-color: var(--focused-border-color);
20+
border-block-end-width: rem(2px);
21+
}
22+
23+
.igx-input-group__bundle-main {
24+
border-block-end-width: rem(2px);
1725
}
1826
}
1927

20-
.igx-input-group__bundle-main {
21-
border-inline-width: 0;
22-
border-block-start-width: 0;
28+
igx-input-group:not(.igx-input-group--prefixed),
29+
igx-input-group:not(.igx-input-group--suffixed) {
30+
.igx-input-group__bundle-main {
31+
border-inline-width: 0;
32+
border-block-start-width: 0;
33+
}
34+
}
35+
36+
igx-input-group.igx-input-group--suffixed {
37+
.igx-input-group__bundle-end {
38+
border-inline-end-width: 0;
39+
border-block-start-width: 0;
40+
}
2341
}
2442

2543
.igx-input-group__input {
26-
padding-inline-start: 0;
44+
padding-inline: 0;
2745
}
2846

2947
.igx-input-group--focused:not(.igx-input-group--file) .igx-input-group__bundle-main {

projects/igniteui-angular/src/lib/combo/themes/shared/indigo.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
$_theme: $indigo;
88

99
@include themed-block(igx-combo, indigo) {
10-
--_search-input-inline-padding: #{pad-inline(rem(12px))};
10+
--_search-input-inline-padding: #{pad-inline(rem(8px), rem(12px), rem(12px))};
1111
--_search-input-block-padding: #{pad-block(rem(12px))};
1212

1313
@include e(search) {

projects/igniteui-angular/src/lib/combo/themes/shared/material.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ $_theme: $material;
1616
}
1717

1818
@include e(search) {
19+
igx-input-group {
20+
--size: #{rem(38px)};
21+
}
22+
1923
.igx-input-group__bundle {
2024
padding-block-start: 0;
2125
height: auto;

projects/igniteui-angular/src/lib/core/styles/typography/_bootstrap.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
));
6060
// @include chip-typography();
6161
// @include column-actions-typography();
62-
@include date-range-typography();
62+
// @include date-range-typography();
6363
@include dialog-typography($categories: (
6464
title: 'h5',
6565
content: 'body-1'

projects/igniteui-angular/src/lib/core/styles/typography/_fluent.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
// text: 'subtitle-2'
6363
// ));
6464
// @include column-actions-typography();
65-
@include date-range-typography();
65+
// @include date-range-typography();
6666
@include dialog-typography($categories: (
6767
title: 'h6',
6868
content: 'body-2'

projects/igniteui-angular/src/lib/core/styles/typography/_indigo.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
));
6262
// @include chip-typography();
6363
// @include column-actions-typography();
64-
@include date-range-typography();
64+
// @include date-range-typography();
6565
@include dialog-typography($categories: (
6666
title: 'h5',
6767
content: 'body-1',

projects/igniteui-angular/src/lib/core/styles/typography/_material.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
@include checkbox-typography();
4646
// @include chip-typography();
4747
// @include column-actions-typography();
48-
@include date-range-typography();
48+
// @include date-range-typography();
4949
@include dialog-typography();
5050
@include dock-manager-typography();
5151
// @include drop-down-typography();
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
@use 'themes/base';
2+
@use 'themes/shared';
23
@use 'themes/light';
34
@use 'themes/dark';

0 commit comments

Comments
 (0)