Skip to content

Commit 59ff0fd

Browse files
author
MPopov
committed
fix(navdrawer): optimize the side padding and margin
1 parent 01400b7 commit 59ff0fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 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);
@@ -320,15 +321,15 @@
320321

321322
> igx-icon + span {
322323
@if $variant == 'indigo-design' {
323-
margin-#{$left}: rem(28px);
324+
margin-#{$left}: calc(32px - #{$text-side-padding});
324325
} @else {
325326
margin-#{$left}: rem(32px);
326327
}
327328
}
328329

329330
span {
330331
@if $variant == 'indigo-design' {
331-
padding-#{$left}: rem(8px);
332+
padding-#{$left}: $text-side-padding;
332333
}
333334
}
334335

0 commit comments

Comments
 (0)