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
If you have a ripple on a component and add a child inside that component, the child can not have hover events or styles applied to it directly(you must apply to the parent). This is because the ripple is position: absolute; when it is not active(not doing the animation) and it covers the entire parent.
What is the expected behavior?
Ripples should allow hover effects and event listeners to work on a parents child without css/js hacks and workarounds.
What is the current behavior?
The ripple blocks this because of it's styles when it is not active.
What are the steps to reproduce?
I believe this can be triggered with any ripple but I specifically encountered it with a custom md-option that had a component inside which listens for hover events. This also happens when trying to apply css affects.
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U
What is the use-case or motivation for changing an existing behavior?
For me: showing user panels on hover without special overrides to attatch event listeners to a parent if the ripple is a sibling.
For everyone else: in general I think you'd run into this pretty easily. I also don't believe this bug is in Material for AngularJS, so anyone upgrading(like me) would be in trouble.
Which versions of Angular, Material, OS, browsers are affected?
Currently when a user places an element, that changes its color on hover, inside of a `md-option` or `md-list-item` the hover effect will never occur.
This is because the ripples are overlying the user content and all pointer events are blocked accidentally.
Fixesangular#4480
Currently when a user places an element, that changes its color on hover, inside of a `md-option` or `md-list-item` the hover effect will never occur.
This is because the ripples are overlying the user content and all pointer events are blocked accidentally.
Fixes#4480
Bug, feature request, or proposal:
If you have a ripple on a component and add a child inside that component, the child can not have hover events or styles applied to it directly(you must apply to the parent). This is because the ripple is
position: absolute;
when it is not active(not doing the animation) and it covers the entire parent.What is the expected behavior?
Ripples should allow hover effects and event listeners to work on a parents child without css/js hacks and workarounds.
What is the current behavior?
The ripple blocks this because of it's styles when it is not active.
What are the steps to reproduce?
I believe this can be triggered with any ripple but I specifically encountered it with a custom
md-option
that had a component inside which listens for hover events. This also happens when trying to apply css affects.Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U
See this.
http://plnkr.co/edit/0Dh65stBoG1v2VEAjvE5?p=preview
What is the use-case or motivation for changing an existing behavior?
For me: showing user panels on hover without special overrides to attatch event listeners to a parent if the ripple is a sibling.
For everyone else: in general I think you'd run into this pretty easily. I also don't believe this bug is in Material for AngularJS, so anyone upgrading(like me) would be in trouble.
Which versions of Angular, Material, OS, browsers are affected?
Angular: 4.1.1
Material: Beta 3
Browser: Chrome 58
OS: macOS 10.12.4
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: