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

md-ripple effect should stay within clicked element #4275

Closed
mackelito opened this issue Apr 25, 2017 · 3 comments
Closed

md-ripple effect should stay within clicked element #4275

mackelito opened this issue Apr 25, 2017 · 3 comments

Comments

@mackelito
Copy link

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Ripple effect should be on clicked element only

What is the current behavior?

Effect leaks out over other elements

What are the steps to reproduce?

http://plnkr.co/edit/AG6Use4SUK0J0It31HNm?p=preview

@willshowell
Copy link
Contributor

The .md-ripple class adds overflow: hidden, but the ripple inside of it has a higher stacking context. For now, you can add this to have the ripple contained.

md-card-title {
  position: relative;
  z-index: 1;
}

@mmalerba
Copy link
Contributor

The ripple's host element (md-card-title in your case) must have a position of relative, absolute or fixed (see: http://plnkr.co/edit/wMfRAcnLIR7GSoKVauRq?p=preview)

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants