-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/overlay #679
Feature/overlay #679
Conversation
{ provide: ScrollDispatcher, useClass: NbScrollDispatcherAdapter }, | ||
], | ||
}) | ||
export class NbAdapterModule { |
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.
NbCdkAdapter maybe? As NbAdapterModule
is too abstract to me
|
||
@Injectable() | ||
export class NbScrollDispatcherAdapter extends ScrollDispatcher { | ||
constructor(_ngZone: NgZone, _platform: NbPlatform, protected scrollService: NbLayoutScrollService) { |
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.
why _
?
super(_platform, ngZone); | ||
} | ||
|
||
getViewportSize(): Readonly<{ width: number; height: number; }> { |
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.
let's add a comment why this is a synchronous operation
@@ -0,0 +1,5 @@ | |||
@mixin nb-overlay-theme { | |||
.overlay-backdrop { | |||
background: rgba(0, 0, 0, 0.288); |
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.
this looks like a theme
variable to me
export abstract class NbPositionedContainer { | ||
@Input() position: NbPosition; | ||
|
||
@HostBinding('class.top') |
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.
should we make this class more specific? That would be safer
if (this.isComponent) { | ||
Object.assign(el._componentRef.instance, this.context); | ||
/** | ||
* Change detection have to performed here, because another way applied context |
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.
have -> has to be
@@ -4,6 +4,7 @@ | |||
* Licensed under the MIT License. See License.txt in the project root for license information. | |||
*/ | |||
|
|||
@import '~@angular/cdk/overlay-prebuilt.css'; |
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.
what styles does it include?
Please read and mark the following check list before creating a pull request:
Short description of what this resolves:
Add nebular cdk module, which is a wrapper over angular cdk and provides some nebular specific features. Such as overrides of the overlay module.
Closes #661, closes #660.