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

fix(list, option): ripples disable mouse events on user content #4503

Merged
merged 1 commit into from
May 12, 2017

Conversation

devversion
Copy link
Member

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 overlaying the user content and all pointer events are blocked accidentally.

Fixes #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 angular#4480
@devversion devversion requested a review from jelbourn May 12, 2017 16:57
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 12, 2017
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels May 12, 2017
@jelbourn jelbourn merged commit c4b3625 into angular:master May 12, 2017
@devversion devversion deleted the fix/ripple-overlay-interaction branch May 12, 2017 23:46
@epelc
Copy link
Contributor

epelc commented May 12, 2017

Thanks for the fix!

Not to bug you and it doesn't affect me but I believe buttons have the same problem.

@devversion
Copy link
Member Author

@epelc I will look at it tomorrow. Thanks

devversion added a commit to devversion/material2 that referenced this pull request May 13, 2017
* The ripple overlay intercepts all mouse events on the user content and therefore users are not able to have interactive elements in their buttons.
   Normally buttons should not contain interactive elements inside, but since the fix is very easy it wouldn't hurt fixing it.

* Removing the `(touchstart)` event that should prevent initial clicks because it didn't do anything (because of pointer-events: none) and the initial click doesn't
   seem to happen anymore.

Related to angular#4503
jelbourn pushed a commit that referenced this pull request May 15, 2017
* fix(button): ripples blocking mouse events on user content

* The ripple overlay intercepts all mouse events on the user content and therefore users are not able to have interactive elements in their buttons.
   Normally buttons should not contain interactive elements inside, but since the fix is very easy it wouldn't hurt fixing it.

* Removing the `(touchstart)` event that should prevent initial clicks because it didn't do anything (because of pointer-events: none) and the initial click doesn't
   seem to happen anymore.

Related to #4503

* Update comment for overlay
@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 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mdOption: ripple blocks hover styles and events on parent's child
4 participants