From 5cdd5db24e9e030d02519b6500afbd8cd33436d3 Mon Sep 17 00:00:00 2001 From: Hsuan Lee Date: Wed, 23 Oct 2019 18:27:14 +0800 Subject: [PATCH] fix(module:drawer): fix the HTML structure of the drawer header (#4311) * fix(module:drawer): fix the HTML structure of the drawer header close #4304 * fix(module:drawer): fix the template conditions * test(module:drawer): fix test * fix(module:drawer): fix the template conditions --- components/drawer/nz-drawer.component.html | 12 +++++++----- components/drawer/nz-drawer.spec.ts | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/components/drawer/nz-drawer.component.html b/components/drawer/nz-drawer.component.html index 9963e23f7a5..25a6ac8a112 100644 --- a/components/drawer/nz-drawer.component.html +++ b/components/drawer/nz-drawer.component.html @@ -18,14 +18,16 @@
-
-
+
+
+
-
diff --git a/components/drawer/nz-drawer.spec.ts b/components/drawer/nz-drawer.spec.ts index 7dc4d4af900..68a0bca620a 100644 --- a/components/drawer/nz-drawer.spec.ts +++ b/components/drawer/nz-drawer.spec.ts @@ -168,7 +168,7 @@ describe('NzDrawerComponent', () => { component.open(); fixture.detectChanges(); expect(overlayContainerElement.querySelector('.ant-drawer')!.classList.contains('ant-drawer-open')).toBe(true); - expect(overlayContainerElement.querySelector('.ant-drawer .ant-drawer-header')).toBe(null); + expect(overlayContainerElement.querySelector('.ant-drawer .ant-drawer-title')).toBe(null); }); it('should support string title', () => {