-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
feat(cdk): move overlay into cdk #6100
Conversation
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.
How is the SCSS bundle generation approached? I don't think that the overlay.scss
file will be part of the release output right now.
src/lib/core/core.ts
Outdated
export {isFakeMousedownFromScreenReader} from './a11y/fake-mousedown'; | ||
|
||
export {A11yModule} from './a11y/index'; | ||
LIVE_ANNOUNCER_PROVIDER, InteractivityChecker, FocusTrap, |
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.
Those imports should be also on separate lines (as same as the others)
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.
Done
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, a few nits.
src/cdk/overlay/public_api.ts
Outdated
import {OVERLAY_CONTAINER_PROVIDER} from './overlay-container'; | ||
|
||
|
||
export {VIEWPORT_RULER_PROVIDER} from './position/viewport-ruler'; |
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.
It might be a good idea to move these exports down after the NgModule
. I've found myself mistaking them for import
statements on a few occasions.
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.
Done
src/lib/menu/menu-trigger.ts
Outdated
// tslint:disable-next-line:no-unused-variable | ||
Overlay, | ||
OverlayRef, | ||
OverlayState, RepositionScrollStrategy, |
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.
The RepositionScrollStrategy
should be on the next line.
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.
Done
src/lib/menu/menu-trigger.ts
Outdated
} from '@angular/core'; | ||
import {Direction, Directionality} from '@angular/cdk/bidi'; | ||
import {isFakeMousedownFromScreenReader} from '@angular/cdk/a11y'; | ||
import {TemplatePortal, } from '@angular/cdk/portal'; |
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.
Stray comma.
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.
Done
PlaceholderOptions, | ||
MD_PLACEHOLDER_GLOBAL_OPTIONS | ||
MD_PLACEHOLDER_GLOBAL_OPTIONS, | ||
PlaceholderOptions |
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.
Trailing comma?
src/lib/snack-bar/snack-bar.ts
Outdated
OverlayState, | ||
LiveAnnouncer, | ||
} from '../core'; | ||
import {ComponentRef, Injectable, Injector, Optional, SkipSelf, } from '@angular/core'; |
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.
Are these commas at the end intentional?
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.
Nope, removed
beedc53
to
15e60c1
Compare
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.
@devversion I plan on adding a overlay-prebuilt.scss
in a follow-up PR
src/lib/core/core.ts
Outdated
export {isFakeMousedownFromScreenReader} from './a11y/fake-mousedown'; | ||
|
||
export {A11yModule} from './a11y/index'; | ||
LIVE_ANNOUNCER_PROVIDER, InteractivityChecker, FocusTrap, |
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.
Done
src/lib/menu/menu-trigger.ts
Outdated
} from '@angular/core'; | ||
import {Direction, Directionality} from '@angular/cdk/bidi'; | ||
import {isFakeMousedownFromScreenReader} from '@angular/cdk/a11y'; | ||
import {TemplatePortal, } from '@angular/cdk/portal'; |
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.
Done
src/lib/menu/menu-trigger.ts
Outdated
// tslint:disable-next-line:no-unused-variable | ||
Overlay, | ||
OverlayRef, | ||
OverlayState, RepositionScrollStrategy, |
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.
Done
src/cdk/overlay/public_api.ts
Outdated
import {OVERLAY_CONTAINER_PROVIDER} from './overlay-container'; | ||
|
||
|
||
export {VIEWPORT_RULER_PROVIDER} from './position/viewport-ruler'; |
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.
Done
src/lib/snack-bar/snack-bar.ts
Outdated
OverlayState, | ||
LiveAnnouncer, | ||
} from '../core'; | ||
import {ComponentRef, Injectable, Injector, Optional, SkipSelf, } from '@angular/core'; |
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.
Nope, removed
Waiting for #6039 to be merged so I can rebase this on top of that |
@mmalerba rebased on the renaming PR and should be ready to go |
please rebase |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I also ended up incidentally changing a lot of the imports in Material to cdk directly