File tree Expand file tree Collapse file tree 2 files changed +38
-4
lines changed
projects/igniteui-angular/src/lib/core/styles/components/drop-down Expand file tree Collapse file tree 2 files changed +38
-4
lines changed Original file line number Diff line number Diff line change 2424 @extend %igx-drop-down__item !optional ;
2525 }
2626
27+ @include e (item, $m : cosy) {
28+ @extend %igx-drop-down__item--cosy !optional ;
29+ }
30+
31+ @include e (item, $m : compact ) {
32+ @extend %igx-drop-down__item--compact !optional ;
33+ }
34+
2735 @include e (item, $m : focused) {
2836 @extend %igx-drop-down__item--focused !optional ;
2937 }
4452 @extend %igx-drop-down__header !optional ;
4553 }
4654
55+ @include e (header , $m : cosy) {
56+ @extend %igx-drop-down__header--cosy !optional ;
57+ }
58+
59+ @include e (header , $m : cosy) {
60+ @extend %igx-drop-down__header--compact !optional ;
61+ }
62+
4763 @include e (group) {
4864 @extend %igx-drop-down__group !optional ;
4965 }
Original file line number Diff line number Diff line change 181181@mixin igx-drop-down ($theme ) {
182182 @include igx-root-css-vars ($theme );
183183
184- $desktop-item-height : 48px ;
185- $mobile-item-height : 32px ;
184+ $item-height : (
185+ confortable: rem (48px ),
186+ cosy: rem (32px ),
187+ compoact: rem (24px )
188+ );
186189
187190 $item-padding : 16px ;
188-
189191 $desktop-header-padding : 16px ;
190192 $mobile-header-padding : 8px ;
191193
223225 align-items : center ;
224226 width : 100% ;
225227 white-space : nowrap ;
228+ height : map-get ($item-height , ' confortable' );
229+ }
230+
231+ %igx-drop-down__item--cosy {
232+ height : map-get ($item-height , ' cosy' );
233+ }
234+
235+ %igx-drop-down__item--compact {
236+ height : map-get ($item-height , ' compact' );
226237 }
227238
228239 %igx-drop-down__item {
229240 color : --var ($theme , ' item-text-color' );
230241 cursor : pointer ;
231- height : rem ($desktop-item-height );
232242 padding : 0 rem ($item-padding );
233243
234244 & :focus {
257267 padding : rem (8px ) rem ($desktop-header-padding );
258268 }
259269
270+ %igx-drop-down__header--cosy {
271+ height : map-get ($item-height , ' cosy' );
272+ }
273+
274+ %igx-drop-down__header--compact {
275+ height : map-get ($item-height , ' compact' );
276+ }
277+
260278 %igx-drop-down__group {
261279 pointer-events : auto ;
262280
You can’t perform that action at this time.
0 commit comments