diff --git a/projects/igniteui-angular/src/lib/navigation-drawer/navigation-drawer.component.html b/projects/igniteui-angular/src/lib/navigation-drawer/navigation-drawer.component.html index dedf1500af7..c219a5a691d 100644 --- a/projects/igniteui-angular/src/lib/navigation-drawer/navigation-drawer.component.html +++ b/projects/igniteui-angular/src/lib/navigation-drawer/navigation-drawer.component.html @@ -14,7 +14,7 @@ [class.igx-nav-drawer--disable-animation]="disableAnimation" (click)="close()" #overlay> - +
diff --git a/projects/igniteui-angular/src/lib/navigation-drawer/navigation-drawer.component.spec.ts b/projects/igniteui-angular/src/lib/navigation-drawer/navigation-drawer.component.spec.ts index f17308683db..5dcae02b715 100644 --- a/projects/igniteui-angular/src/lib/navigation-drawer/navigation-drawer.component.spec.ts +++ b/projects/igniteui-angular/src/lib/navigation-drawer/navigation-drawer.component.spec.ts @@ -203,7 +203,7 @@ describe('Navigation Drawer', () => { fixture.detectChanges(); expect(fixture.componentInstance.navDrawer.hasAnimateWidth).toBeTruthy(); - expect(fixture.debugElement.query((x) => x.nativeNode.nodeName === 'ASIDE').nativeElement.classList) + expect(fixture.debugElement.query(By.css('.igx-nav-drawer__aside')).nativeElement.classList) .toContain('igx-nav-drawer__aside--mini'); }).catch((reason) => Promise.reject(reason)); })); @@ -262,7 +262,7 @@ describe('Navigation Drawer', () => { fixture.detectChanges(); expect(fixture.componentInstance.navDrawer.pin).toBeTruthy(); - expect(fixture.debugElement.query((x) => x.nativeNode.nodeName === 'ASIDE').nativeElement.classList) + expect(fixture.debugElement.query(By.css('.igx-nav-drawer__aside')).nativeElement.classList) .toContain('igx-nav-drawer__aside--pinned'); expect(fixture.componentInstance.navDrawer.enableGestures).toBe(false); @@ -291,7 +291,7 @@ describe('Navigation Drawer', () => { fixture.detectChanges(); const windowHeight = window.innerHeight; const container = fixture.debugElement.query(By.css('div')).nativeElement; - const navdrawer = fixture.debugElement.query(By.css('igx-nav-drawer > aside')).nativeElement; + const navdrawer = fixture.debugElement.query(By.css('igx-nav-drawer > .igx-nav-drawer__aside')).nativeElement; fixture.componentInstance.pin = false; fixture.detectChanges(); @@ -484,7 +484,7 @@ describe('Navigation Drawer', () => { fixture.detectChanges(); // const comp: DebugElement = fixture.debugElement.query(By.component(IgxNavbarComponent)); - const asideElem = fixture.debugElement.query(By.css('igx-nav-drawer > aside')).nativeElement; + const asideElem = fixture.debugElement.query(By.css('igx-nav-drawer > .igx-nav-drawer__aside')).nativeElement; const computedStyle = window.getComputedStyle(asideElem); let asideWidth = computedStyle.getPropertyValue('width'); diff --git a/src/app/app.component.html b/src/app/app.component.html index ddb520bb27c..e749389a05d 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -5,58 +5,54 @@ [(pin)]="drawerState.pin" [position]="drawerState.position">