This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
Possible to see snackbars in hidden state on any platform with rubber-band scrolling at edges #1258
Closed
Description
What MDC-Web Version are you using?
0.20.0
What browser(s) is this bug affecting?
Chrome or Safari on OS X
What are the steps to reproduce the bug?
- Go to http://material-components-web.appspot.com/snackbar.html
- Scroll to the bottom and continue scrolling to cause the browser to rubber-band past the end of the screen
What is the expected behavior?
It shouldn't be possible to see the hidden snackbars.
What is the actual behavior?
The boxes from the "hidden" snackbars are visible.
Any other information you believe would be useful?
Presumably we're leaving these elements in a convenient resting position to transition in. Possible solutions:
- Switch to using animations and set up keyframes so that the resting place is further offscreen but it immediately moves to the current resting place at the beginning of the animation
- Since this is a JS component, programmatically update the transition style (or apply another class) before becoming active / after the transition ends after becoming inactive