Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Sidenav fixes #389

Merged
merged 8 commits into from
Apr 5, 2018
Merged

Sidenav fixes #389

merged 8 commits into from
Apr 5, 2018

Conversation

amcdnl
Copy link
Contributor

@amcdnl amcdnl commented Feb 10, 2018

This PR:

@jelbourn
Copy link
Member

@mmalerba can you take a look?


&:focus {
// override the default background
background: rgba(0, 0, 0, $nav-background-focus-opacity) !important;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the !important necessary? can we just make the rule more specific?

<table-of-contents #toc
*ngIf="showToc$ | async"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we use the $ naming style anywhere else

// Listen to changes on the current route for the doc id (e.g. button/checkbox) and the
// parent route for the section (material/cdk).
combineLatest(_route.params, _route.parent.params).pipe(
this._subscription = combineLatest(_route.params, _route.parent.params).pipe(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we prefer takeUntil(this._destroyed) over managing the subscription

@jelbourn
Copy link
Member

Poke @amcdnl on this one

@amcdnl
Copy link
Contributor Author

amcdnl commented Apr 1, 2018

@mmalerba / @jelbourn - Addressed feedback.

@amcdnl
Copy link
Contributor Author

amcdnl commented Apr 1, 2018

In this PR, I also:

  • Upgraded Angular to v6
  • Upgraded RxJS
  • Upgrade Material/CDK
  • Migrated RxJS implementation
  • Expanded nav by default

@@ -41,6 +54,10 @@ export class ComponentViewer {
}
});
}

ngOnDestroy(): void {
this._destroyed.next();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also this._destroyed.complete()

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn merged commit cbb959f into angular:master Apr 5, 2018
@amcdnl amcdnl deleted the sidenav-fixes branch April 9, 2018 13:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants