-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(a11y): add cdkAriaLive directive #11352
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
Conversation
providers: [{ | ||
provide: MutationObserverFactory, | ||
useValue: { | ||
create: function(callback: Function) { |
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.
Arrow function?
selector: '[cdkAriaLive]' | ||
}) | ||
export class CdkAriaLive implements OnDestroy { | ||
@Input('cdkAriaLive') |
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.
Add user-facing JsDoc
this._subscription = null; | ||
} | ||
} else { | ||
this._subscription = this._ngZone.runOutsideAngular( |
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.
Shouldn't you only set up a new subscription if there isn't already one?
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
Looks like circle still has a failure |
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
@devversion thinks this directive may not be necessary. I'll experiment with getting the datepicker a11y working without it and then decide what to do with this PR |
@devversion I found that just setting |
@mmalerba Sounds good. |
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. |
unblocks #11144