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-switch ripple turns on when window gets focus #7837
@jsr6720 Just investigated again at this issue. And it's still not an issue. It's also not a ripple, it's just a focus effect, which is added for Keyboard Interaction / a11y.
The focus effect is always showing, because the browser restores the focus back to the last element. (and that was obviously the switch).
As long as we don't have an option (or attribute) to set this focus off this is a bug.. I don't think we should see the background animation after switching windows..
Here is behavior we are seeing on the icon button. Our users asked about it day one of release. It is really annoying. Basically anytime an action is taken this happens when that action is completed. For switches, checkboxes and for icon buttons so far).
The issue is, we're always applying the focus effect, when there was no click for 100ms. That means, if you switch the browser tabs, then there will be no click triggered on the button.. only a focus event (which adds the focus effect)
So, we need a way to detect the last interaction type. A PR is already pending - #7965, which means, that this issue is currently blocked.
Activity
devversion commentedon Apr 1, 2016
This is actually not an issue, the focus on the switch is just restored by the browsers behavior.
jsr6720 commentedon Apr 5, 2016
@devversion Can you please re-open this issue. This ripple effect occurs even on the 'no ripple' directive
See screen shot
devversion commentedon Apr 5, 2016
@jsr6720 Please explain, how we can reproduce that bug? I'm not able to reproduce it by your steps above.
jsr6720 commentedon Apr 5, 2016
Same steps as above. I just confirmed in Google Canary
jsr6720 commentedon Apr 5, 2016
@devversion do you still need more information? This is impacting our implementation of md-switch @paychex
devversion commentedon Apr 6, 2016
@jsr6720 I will investigate today and look for the correct behavior. Thanks for explanation.
devversion commentedon Apr 6, 2016
@jsr6720 Just investigated again at this issue. And it's still not an issue. It's also not a ripple, it's just a focus effect, which is added for Keyboard Interaction / a11y.
The focus effect is always showing, because the browser restores the focus back to the last element. (and that was obviously the switch).
angryfatkid commentedon Apr 6, 2016
@devversion I can repro this with Chrome. It happens in both states. (Note: We also see this on button icons)
To further explain the issues, we are seeing this when our application pops a toast. Once the toast fades this effect happens.
roytz commentedon Apr 7, 2016
As long as we don't have an option (or attribute) to set this focus off this is a bug.. I don't think we should see the background animation after switching windows..
angryfatkid commentedon Apr 7, 2016
Here is behavior we are seeing on the icon button. Our users asked about it day one of release. It is really annoying. Basically anytime an action is taken this happens when that action is completed. For switches, checkboxes and for icon buttons so far).
2 remaining items
devversion commentedon Apr 7, 2016
100ms. That means, if you switch the browser tabs, then there will be no click triggered on the button.. only a focus event (which adds the focus effect)So, we need a way to detect the last interaction type. A PR is already pending - #7965, which means, that this issue is currently blocked.
cc. @ThomasBurleson
angryfatkid commentedon Apr 8, 2016
@devversion Thanks!
devversion commentedon May 27, 2016
This issue will be deprecated soon. The actual issue will be tracked in #7963
ThomasBurleson commentedon Jun 2, 2016
This issue is closed as part of our ‘Surge Focus on Material 2' efforts.
For details, see our forum posting @ http://bit.ly/1UhZyWs.
devversion commentedon Oct 26, 2016
Note: This has been solved in
masternow https://material.angularjs.org/HEAD/demo/switch