-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
refactor(select): use aria-activedescendant to manage focus #6856
Conversation
14f5414
to
1f992ae
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.
Overall looks good; @kara should do a quick pass
(I'll get her to look at it tomorrow)
src/lib/select/select.spec.ts
Outdated
trigger.click(); | ||
fixture.detectChanges(); | ||
tick(200); |
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.
Make constants for 200
and 500
so that the different have some semantic meaning tied to it?
5f54f1b
to
624ddff
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. Needs rebase now, though.
624ddff
to
23a5494
Compare
please rebase |
23a5494
to
a518536
Compare
Ready to go @mmalerba. |
a518536
to
26fd20e
Compare
Needs rebase |
* Refactors the select to use `aria-activedescendant` to announce the highlighted item to screen readers. Previously we would this through focus, however using focus prevents us from being able to do things like angular#3211. * Fixes a hack that was used to get a hold of the panel element using `querySelector`. Now it properly uses a `ViewChild` query, however this meant some tests had to be updated. Relates to angular#3211. Fixes angular#6690.
26fd20e
to
6ea8424
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. |
…iveDescendant Updates previous fix to account for previous fix angular#6856 which refactored focus on listbox to use aria-activedescendant instead to manage focus. Fixes b/285945157
…iveDescendant Updates previous fix to account for previous fix angular#6856 which refactored focus on listbox to use aria-activedescendant instead to manage focus. Fixes b/285945157
…iveDescendant Updates previous fix to account for previous fix angular#6856 which refactored focus on listbox to use aria-activedescendant instead to manage focus. Fixes b/285945157
aria-activedescendant
to announce the highlighted item to screen readers. Previously we would do this through focus, however using focus prevents us from being able to do things like feat(select): add md-select-header directive #3211.querySelector
. Now it properly uses aViewChild
query, however this meant some tests had to be updated.Relates to #3211.
Fixes #6690.