Skip to content
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

Merged
merged 4 commits into from
Sep 10, 2018
Merged

Feature/overlay #679

merged 4 commits into from
Sep 10, 2018

Conversation

Tibing
Copy link
Member

@Tibing Tibing commented Aug 27, 2018

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.

@Tibing Tibing requested review from yggg and denStrigo August 27, 2018 14:20
{ provide: ScrollDispatcher, useClass: NbScrollDispatcherAdapter },
],
})
export class NbAdapterModule {
Copy link
Collaborator

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) {
Copy link
Collaborator

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; }> {
Copy link
Collaborator

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);
Copy link
Collaborator

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')
Copy link
Collaborator

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
Copy link
Collaborator

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';
Copy link
Collaborator

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?

@nnixaa nnixaa merged commit b9283d3 into akveo:master Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CDK Overlays new cdk folder with proxies to @angular/cdk
2 participants