Skip to content

Commit a1e1b36

Browse files
didimmovasimeonoff
andauthored
feat(select/combo): fix icon sizes for indigo (#1827)
* feat(select/combo): fix icon sizes for indigo * feat(combo/select): cover all icons inside the input --------- Co-authored-by: Simeon Simeonoff <[email protected]>
1 parent d7e0ea1 commit a1e1b36

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/components/combo/themes/shared/combo.indigo.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ $dropdown-theme: dropdown-theme.$indigo;
99

1010
:host {
1111
--component-size: var(--ig-size, #{var-get($theme, 'default-size')});
12+
--input-icon: #{sizable(rem(14px), rem(16px), rem(18px))};
1213
--combo-size: var(--component-size);
1314

1415
igc-input::part(container) {
@@ -21,6 +22,11 @@ $dropdown-theme: dropdown-theme.$indigo;
2122
margin-block-start: rem(4px);
2223
grid-auto-rows: minmax(rem(15px), auto);
2324
}
25+
26+
igc-icon,
27+
::slotted(igc-icon) {
28+
--size: var(--input-icon) !important;
29+
}
2430
}
2531

2632
[part='case-icon'] {

src/components/select/themes/shared/select.indigo.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ $input-theme: input-theme.$indigo;
1111
--component-size: var(--ig-size, #{var-get($theme, 'default-size')});
1212
--select-size: var(--component-size);
1313
--dropdown-size: var(--component-size);
14+
--input-icon: #{sizable(rem(14px), rem(16px), rem(18px))};
1415

1516
::part(helper-text) {
1617
@include type-style('caption');
@@ -26,6 +27,11 @@ $input-theme: input-theme.$indigo;
2627
igc-input::part(container) {
2728
padding-inline: 0;
2829
}
30+
31+
igc-icon,
32+
::slotted(igc-icon) {
33+
--size: var(--input-icon) !important;
34+
}
2935
}
3036

3137
[part='base'] {

0 commit comments

Comments
 (0)