Skip to content

Commit 53dad71

Browse files
authored
Merge branch 'master' into tzhelev/fix-5577-8.2.x
2 parents 5be7e11 + e5cb6f3 commit 53dad71

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

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

+8-3
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@
209209
%aside--mini {
210210
width: rem(60px);
211211
transition-duration: .2s, .2s;
212+
213+
%item {
214+
justify-content: center;
215+
}
212216
}
213217

214218
%aside--normal {
@@ -251,17 +255,18 @@
251255
%item {
252256
position: relative;
253257
display: flex;
258+
align-items: center;
254259
flex-flow: row nowrap;
255260
color: --var($theme, 'item-text-color');
256261
max-height: rem(48px);
257-
padding: rem(12px) rem(16px);
262+
min-width: rem(32px);
263+
padding: rem(12px) rem(8px);
258264
cursor: pointer;
259-
align-items: center;
260265
user-select: none;
261266
outline: transparent;
262267
white-space: nowrap;
263268
border-radius: --var($theme, 'item-border-radius');
264-
margin: 8px;
269+
margin: rem(8px) rem(8px);
265270

266271
> igx-icon + span {
267272
margin-left: rem(32px);

projects/igniteui-angular/src/lib/navigation-drawer/navigation-drawer.component.spec.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ describe('Navigation Drawer', () => {
240240
fixture.detectChanges();
241241
asideElem = fixture.debugElement.query(By.css('.igx-nav-drawer__aside'));
242242

243-
expect(asideElem.styles['width']).toEqual('60px');
243+
expect(asideElem.styles['width']).toEqual('68px');
244244

245245
fixture.componentInstance.miniView = false;
246246
fixture.detectChanges();
@@ -441,9 +441,10 @@ describe('Navigation Drawer', () => {
441441
fixture = TestBed.createComponent(TestComponentDIComponent);
442442
fixture.detectChanges();
443443

444-
fixture.componentInstance.drawerMiniWidth = 60;
444+
fixture.componentInstance.drawerMiniWidth = 68;
445445
fixture.detectChanges();
446-
expect(fixture.componentInstance.viewChild.maxEdgeZone).toBe(66);
446+
expect(fixture.componentInstance.viewChild.maxEdgeZone)
447+
.toBe(fixture.componentInstance.drawerMiniWidth * 1.1);
447448

448449
fixture.componentInstance.drawerMiniWidth = 80;
449450
fixture.detectChanges();

projects/igniteui-angular/src/lib/navigation-drawer/navigation-drawer.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class IgxNavigationDrawerComponent implements
183183
@Input() public width = '280px';
184184

185185
/**
186-
* Width of the drawer in its mini state. Defaults to 60px.
186+
* Width of the drawer in its mini state. Defaults to 68px.
187187
*
188188
* ```typescript
189189
* // get
@@ -195,7 +195,7 @@ export class IgxNavigationDrawerComponent implements
195195
* <igx-nav-drawer [miniWidth]="'34px'"></igx-nav-drawer>
196196
* ```
197197
*/
198-
@Input() public miniWidth = '60px';
198+
@Input() public miniWidth = '68px';
199199

200200
/**
201201
* Pinned state change output for two-way binding.

0 commit comments

Comments
 (0)