-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(material): use scoped injectables #10507
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.
LGTM, just one question about the removed module imports.
import {CommonModule} from '@angular/common'; | ||
import {NgModule} from '@angular/core'; | ||
import {MatCommonModule, MatRippleModule} from '@angular/material/core'; | ||
import {MatRadioButton, MatRadioGroup} from './radio'; | ||
|
||
|
||
@NgModule({ | ||
imports: [CommonModule, MatRippleModule, MatCommonModule, A11yModule], |
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 removing this one intentional? The radio button has a dependency on the focus monitor from a11y.
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.
Removing here is okay since radio doesn't use any of the a11y directives. However, this comment made me realize I shouldn't have remove A11yModule
from the date picker module. Fixed that.
2bc4db9
to
0ffe24a
Compare
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. |
Also catches cdk/layout which was missed earlier.
The overlay and the family of components based on it (dialog, snackbar, etc.) can't use the new semantics because they need the most appropriate
ComponentFactoryResolver
instead of the one that's always at the root.