Skip to content
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
@kfranqueiro

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?

  1. Go to http://material-components-web.appspot.com/snackbar.html
  2. 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.

image

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions