Skip to content

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

Merged
merged 4 commits into from
May 22, 2018
Merged

feat(a11y): add cdkAriaLive directive #11352

merged 4 commits into from
May 22, 2018

Conversation

mmalerba
Copy link
Contributor

unblocks #11144

@mmalerba mmalerba requested a review from jelbourn May 15, 2018 22:15
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 15, 2018
@mmalerba mmalerba added the target: minor This PR is targeted for the next minor release label May 15, 2018
providers: [{
provide: MutationObserverFactory,
useValue: {
create: function(callback: Function) {
Copy link
Member

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')
Copy link
Member

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(
Copy link
Member

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?

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

@jelbourn
Copy link
Member

Looks like circle still has a failure

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

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels May 16, 2018
@josephperrott josephperrott added target: patch This PR is targeted for the next patch release and removed target: patch This PR is targeted for the next patch release labels May 16, 2018
@mmalerba mmalerba added blocked This issue is blocked by some external factor, such as a prerequisite PR and removed action: merge The PR is ready for merge by the caretaker labels May 17, 2018
@mmalerba
Copy link
Contributor Author

@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

@mmalerba
Copy link
Contributor Author

@devversion I found that just setting aria-atomic and aria-live was not enough to make it work in VoiceOver for my calendar use case. So will go ahead with this PR.

@mmalerba mmalerba added action: merge The PR is ready for merge by the caretaker and removed blocked This issue is blocked by some external factor, such as a prerequisite PR labels May 22, 2018
@devversion
Copy link
Member

@mmalerba Sounds good.

@mmalerba mmalerba merged commit 64a70ad into angular:master May 22, 2018
@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 9, 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.

5 participants