You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
md-button that reveals dialog continues to display focus styled when returned #4945
Focus is being sent back to the triggering button on purpose–so that a keyboard or screen reader user will be directed to the correct content. This is the intended behavior.
On Mac OS X, clicking on push buttons or checkboxes does not steal focus from other controls. They can still be focused via the keyboard, so there's no accessibility issue.
Unfortunately we do not have the same primitives on the Web as native platforms do. If you're curious about the limitations surrounding this issue, read up on CSS Input Modality. I think Angular Material will have to implement something similar to @alice and @bkardell's prollyfill since the perceived "bug" will just keep coming up again and again and again.
Activity
EladBezalel commentedon Oct 1, 2015
Can confirm, occurs only when clicking on a button that closes the dialog or pressing ESC, when clicking outside the button losses his focus
marcysutton commentedon Oct 1, 2015
Focus is being sent back to the triggering button on purpose–so that a keyboard or screen reader user will be directed to the correct content. This is the intended behavior.
EladBezalel commentedon Oct 1, 2015
So @marcysutton this is not a bug and can be closed?
marcysutton commentedon Oct 1, 2015
Sounds like it! I will close.
chriscalo commentedon Oct 5, 2015
On Mac OS X, clicking on push buttons or checkboxes does not steal focus from other controls. They can still be focused via the keyboard, so there's no accessibility issue.
http://sendvid.com/2gweiimg
In my humble opinion, the same is desirable on the web. This can be achieved on push buttons via
event.preventDefault()onmousedown.marcysutton commentedon Oct 15, 2015
Unfortunately we do not have the same primitives on the Web as native platforms do. If you're curious about the limitations surrounding this issue, read up on CSS Input Modality. I think Angular Material will have to implement something similar to @alice and @bkardell's prollyfill since the perceived "bug" will just keep coming up again and again and again.