Skip to content

Commit adf8a05

Browse files
authored
feat(combo): fix combo initial height (#1826)
1 parent a1e1b36 commit adf8a05

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/components/combo/themes/combo.base.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
@use 'styles/utilities' as *;
33

44
:host {
5+
--item-count: 6;
6+
57
display: block;
68
font-family: var(--ig-font-family);
79

@@ -73,7 +75,7 @@
7375
}
7476

7577
[part='list'] {
76-
min-height: rem(200px) !important;
78+
min-height: calc(var(--size) * var(--item-count)) !important;
7779
outline-style: none;
7880
}
7981

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ $dropdown-theme: dropdown-theme.$indigo;
6767
}
6868
}
6969

70+
[part='list'] {
71+
min-height: calc(var(--size) * var(--item-count) + rem(16px)) !important;
72+
}
73+
7074
[part='filter-input'] {
7175
padding: pad-inline(rem(12px));
7276
}

0 commit comments

Comments
 (0)