-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(a11y): add injection token configure default politeness and duration #15126
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(a11y): add injection token configure default politeness and duration #15126
Conversation
5ed7cc2
to
8612eb8
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.
LGTM. Two minor nits
@Inject(DOCUMENT) _document: any) { | ||
@Inject(DOCUMENT) _document: any, | ||
@Optional() @Inject(LIVE_ANNOUNCER_DEFAULT_OPTIONS) | ||
private _defaultOptions?: LiveAnnouncerDefaultOptions) { |
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.
Wrong indentation here?
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's intentional. I had to wrap the line so it doesn't go over the limit.
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.
Yeah the wrapping makes sense. Though the additional spaces are inconsistent with what we usually do (and I've not found similar wrapping in the repo). Not trying to be too nitpicky, but this is an easy fix to be consistent.. 😄
e.g. see drag.ts
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 aside from Paul's comment
…tion Adds an injection token that allows consumers to configure the default `politeness` and `duration` for the live announcer. Fixes angular#15121.
8612eb8
to
c064bfd
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. |
Adds an injection token that allows consumers to configure the default
politeness
andduration
for the live announcer.Fixes #15121.