Skip to content

Conversation

@crisbeto
Copy link
Member

@crisbeto crisbeto commented Feb 8, 2019

Adds an injection token that allows consumers to configure the default politeness and duration for the live announcer.

Fixes #15121.

@crisbeto crisbeto added the target: minor This PR is targeted for the next minor release label Feb 8, 2019
@crisbeto crisbeto changed the title feat(a11y): add injection token configure default politeness and dura… feat(a11y): add injection token configure default politeness and duration Feb 8, 2019
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 8, 2019
@crisbeto crisbeto force-pushed the 15121/live-announcer-defaults branch from 5ed7cc2 to 8612eb8 Compare February 8, 2019 13:21
Copy link
Member

@devversion devversion left a 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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong indentation here?

Copy link
Member Author

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.

Copy link
Member

@devversion devversion Feb 8, 2019

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

https://github.com/angular/material2/blob/d69bc45ed156ad9f5fd2f2e062fc10112d2ea81e/src/cdk/drag-drop/directives/drag.ts#L168-L169

Copy link
Member

@jelbourn jelbourn left a 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.
@crisbeto crisbeto force-pushed the 15121/live-announcer-defaults branch from 8612eb8 to c064bfd Compare February 9, 2019 10:59
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Feb 9, 2019
@jelbourn jelbourn merged commit e2c9873 into angular:master Feb 14, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LiveAnnouncer should have a global duration to remove the text

4 participants