Skip to content

Commit 84536a6

Browse files
authored
Merge pull request #7809 from IgniteUI/mpopov/navdrawer-glued-items
Fix navdrawer issues
2 parents 781b9be + 496c282 commit 84536a6

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

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

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@
158158

159159
$drawer-icon-size: rem(24px);
160160
$drawer-item-margin: rem(8px);
161+
$text-side-padding: rem(8px);
161162
$drawer-item-min-h: auto;
162163
$drawer-item-max-h: rem(48px);
163164
$drawer-item-min-w: rem(32px);
@@ -297,15 +298,15 @@
297298
color: --var($theme, 'item-text-color');
298299
max-height: $drawer-item-max-h;
299300
min-width: $drawer-item-min-w;
300-
margin: $drawer-item-margin;
301301

302302
@if $variant != 'indigo-design' {
303+
// important is needed to override the typography margins
304+
margin: $drawer-item-margin !important;
303305
padding: rem(12px) rem(8px);
304306
} @else {
305-
padding: rem(4px) rem(4px);
306-
307307
// important is needed to override the typography margins
308308
margin: rem(15px) $drawer-item-margin !important;
309+
padding: rem(4px);
309310
}
310311

311312
cursor: pointer;
@@ -319,7 +320,17 @@
319320
justify-content: flex-start;
320321

321322
> igx-icon + span {
322-
margin-#{$left}: rem(32px);
323+
@if $variant == 'indigo-design' {
324+
margin-#{$left}: calc(32px - #{$text-side-padding});
325+
} @else {
326+
margin-#{$left}: rem(32px);
327+
}
328+
}
329+
330+
span {
331+
@if $variant == 'indigo-design' {
332+
padding-#{$left}: $text-side-padding;
333+
}
323334
}
324335

325336
igx-icon {

0 commit comments

Comments
 (0)