-
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
fix(material/option): add fix for autocomplete mobile screen readers #29586
base: main
Are you sure you want to change the base?
Conversation
a7fe52d
to
a787967
Compare
added tabindex=-1 to add programmatic focus to mat-options fixes b/272216403
fix tests fixes b/272216403
a787967
to
a55dfe7
Compare
Deployed dev-app for a55dfe7 to: https://ng-dev-previews-comp--pr-angular-components-29586-dev-kk3sbil8.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
expect(options[0].hasAttribute('tabindex')).toBeFalse(); | ||
expect(options[1].hasAttribute('tabindex')).toBeFalse(); | ||
expect(options[2].hasAttribute('tabindex')).toBeFalse(); | ||
it('should not omit the tabindex attribute on each option', fakeAsync(() => { |
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 looks like this was added to resolve a different accessibility issue: #26917
Hello @crisbeto , I could not reach you. I know this question is not in regards of the current PR but I have a question in regards of the Here is an exemple of what I mean more precisely. That I want to achieve with this angular material component. |
We don't currently support something like that, but feel free to open a feature request. |
added tabindex=-1 to add programmatic focus to mat-options
fixes b/272216403