Skip to content

Commit ad179c9

Browse files
committed
refactor(combo): use CSS variable to set item count
1 parent a89758a commit ad179c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

projects/igniteui-angular/src/lib/core/styles/components/combo/_combo-theme.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,14 @@
9898
}
9999

100100
%igx-combo__content {
101+
--item-count: 6;
102+
101103
position: relative;
102104
overflow: hidden;
103-
max-height: calc(var(--size) * 6);
105+
max-height: calc(var(--size) * var(--item-count));
104106

105107
@if $variant == 'indigo' {
106-
max-height: calc(var(--size) * 6 + rem(16px));
108+
max-height: calc(var(--size) * var(--item-count) + rem(16px));
107109
}
108110

109111
&:focus {

0 commit comments

Comments
 (0)