Skip to content

Commit 1849eba

Browse files
author
MPopov
committed
This fixes the glued items and part form the indentation problem
1 parent f22cc83 commit 1849eba

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

projects/igniteui-angular/src/lib/core/styles/components/navdrawer/_navdrawer-theme.scss

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,15 @@
297297
color: --var($theme, 'item-text-color');
298298
max-height: $drawer-item-max-h;
299299
min-width: $drawer-item-min-w;
300-
margin: $drawer-item-margin;
301300

302301
@if $variant != 'indigo-design' {
302+
// important is needed to override the typography margins
303+
margin: $drawer-item-margin !important;
303304
padding: rem(12px) rem(8px);
304305
} @else {
305-
padding: rem(4px) rem(4px);
306-
307306
// important is needed to override the typography margins
308307
margin: rem(15px) $drawer-item-margin !important;
308+
padding: rem(4px) rem(4px);
309309
}
310310

311311
cursor: pointer;
@@ -319,13 +319,23 @@
319319
justify-content: flex-start;
320320

321321
> igx-icon + span {
322-
margin-#{$left}: rem(32px);
322+
@if $variant == 'indigo-design' {
323+
margin-#{$left}: rem(28px);
324+
} @else {
325+
margin-#{$left}: rem(32px);
326+
}
327+
}
328+
329+
span {
330+
@if $variant == 'indigo-design' {
331+
padding-#{$left}: rem(4px);
332+
}
323333
}
324334

325335
igx-icon {
326336
color: --var($theme, 'item-icon-color');
327337
@if $variant == 'indigo-design' {
328-
margin-#{$left}: rem(4px);
338+
margin-#{$left}: rem(2px);
329339
}
330340
}
331341

0 commit comments

Comments
 (0)