From 799be9c98a700fd2f706cfd0b429cf44ec60391b Mon Sep 17 00:00:00 2001 From: Stefanie Fluin Date: Tue, 2 May 2017 10:13:10 -0700 Subject: [PATCH] feat(aio): TOC float right + service refactor TOC appears in right panel when wide and hides embedded TOC Right TOC panel height adjusts dynamically during scroll Refactored `TocService` and its tests for clarity. --- aio/src/app/app.component.html | 4 +- aio/src/app/app.component.spec.ts | 49 +++++++++++-- aio/src/app/app.component.ts | 30 ++++++-- aio/src/app/embedded/embedded.module.ts | 3 + aio/src/app/embedded/toc/toc.component.html | 2 +- .../app/embedded/toc/toc.component.spec.ts | 38 ++++++++-- aio/src/app/embedded/toc/toc.component.ts | 36 ++++++--- aio/src/app/shared/toc.service.spec.ts | 73 +++++++++++++------ aio/src/app/shared/toc.service.ts | 44 +++++------ aio/src/styles/2-modules/_toc.scss | 22 +++++- 10 files changed, 222 insertions(+), 79 deletions(-) diff --git a/aio/src/app/app.component.html b/aio/src/app/app.component.html index 55add5a8ef..78672b30ab 100644 --- a/aio/src/app/app.component.html +++ b/aio/src/app/app.component.html @@ -33,7 +33,9 @@ -
+
+ +