-
Notifications
You must be signed in to change notification settings - Fork 395
Conversation
@mmalerba can you take a look? |
|
||
&:focus { | ||
// override the default background | ||
background: rgba(0, 0, 0, $nav-background-focus-opacity) !important; |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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
Poke @amcdnl on this one |
In this PR, I also:
|
@@ -41,6 +54,10 @@ export class ComponentViewer { | |||
} | |||
}); | |||
} | |||
|
|||
ngOnDestroy(): void { | |||
this._destroyed.next(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also this._destroyed.complete()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR: