-
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/button-toggle): fix ChromeVox focus issue on button toggle #21046
Conversation
5638290
to
83acefe
Compare
c61d6a4
to
f056c04
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
return true; | ||
} else { | ||
return false; | ||
} |
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.
nit: you can simplify this to:
focusableChild?.focus();
return !!focusableChild;
f056c04
to
287aa43
Compare
Note: people may be calling |
@annieyw One of your commit messages isn't formatted correctly |
…dkFocusInitial element isn't focusable
287aa43
to
66b07e8
Compare
fixed commit message |
Removes the `tabindex` from the host node, because it causes some a11y issues. We had it there before so that things like `cdkFocusInitial` would work, but after angular#21046 it isn't necessary anymore. Fixes angular#21266.
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. |
Fixes focus issue with Chromevox in which you need to hit arrow key twice to move to the next button-toggle.