From 4f5578a34467883d973bca6e371ec932f7971fb2 Mon Sep 17 00:00:00 2001 From: Jeremy Elbourn Date: Thu, 8 Jun 2017 11:40:08 -0700 Subject: [PATCH] chore: add tabs and expansion components to kitchen-sink --- src/demo-app/expansion/expansion-demo.html | 6 +-- src/lib/expansion/accordion.ts | 4 +- .../kitchen-sink/kitchen-sink.html | 51 ++++++++++++++----- .../kitchen-sink/kitchen-sink.ts | 2 + src/universal-app/prerender.ts | 7 ++- 5 files changed, 50 insertions(+), 20 deletions(-) diff --git a/src/demo-app/expansion/expansion-demo.html b/src/demo-app/expansion/expansion-demo.html index fe2fa05517de..a8be35bde049 100644 --- a/src/demo-app/expansion/expansion-demo.html +++ b/src/demo-app/expansion/expansion-demo.html @@ -1,8 +1,8 @@

Single Expansion Panel

- This is a panel description. - Panel Title + This is a panel description. + Panel Title This is the content text that makes sense here. @@ -49,4 +49,4 @@

Accordion

- \ No newline at end of file + diff --git a/src/lib/expansion/accordion.ts b/src/lib/expansion/accordion.ts index 6e46135373da..bece9f76e09d 100644 --- a/src/lib/expansion/accordion.ts +++ b/src/lib/expansion/accordion.ts @@ -51,8 +51,6 @@ export class CdkAccordion { */ @Directive({ selector: 'mat-accordion, md-accordion', - host: { - class: 'mat-accordion' - } + host: {'class': 'mat-accordion'} }) export class MdAccordion extends CdkAccordion {} diff --git a/src/universal-app/kitchen-sink/kitchen-sink.html b/src/universal-app/kitchen-sink/kitchen-sink.html index fa237cca4f67..5ddf71d1582b 100644 --- a/src/universal-app/kitchen-sink/kitchen-sink.html +++ b/src/universal-app/kitchen-sink/kitchen-sink.html @@ -91,6 +91,34 @@

Datepicker

+

Expansion

+ + + + This is a panel description. + Panel Title + + This is the content text that makes sense here. + + + + + + + + + Section 1 +

This is the content text that makes sense here.

+
+ + Section 2 +

This is the content text that makes sense here.

+
+ + Section 3 + +
+

Grid list

@@ -184,18 +212,17 @@

Slider

Tabs

- - - - - - - - - - - - + + + The overview + + + + API docs + + The API docs + +