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(drawer): Remove list item children to be included in click target. #3480

Merged
merged 8 commits into from
Aug 31, 2018

Conversation

abhiomkar
Copy link
Contributor

Since #3460 adds additional wrapper element to text label inside list item it might be included as click target. In this change, drawer removes the pointer events from list item children including __text & __graphic so click event always originates from list-item instead of its children.

The long-term solution would be to have a custom event for MDC List that drawer & menu can listen to.

@mdc-web-bot
Copy link
Collaborator

All 353 screenshot tests passed for commit 809750e vs. master! 💯🎉

@@ -89,6 +89,12 @@
.mdc-list-divider {
margin: 3px 0 4px 0;
}

// Prevents list item children to be included in click target.
Copy link
Contributor

Choose a reason for hiding this comment

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

Prevents list item children from being included in the click target.

Copy link
Contributor

@williamernest williamernest left a comment

Choose a reason for hiding this comment

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

LGTM

@mdc-web-bot
Copy link
Collaborator

All 353 screenshot tests passed for commit 32cf901 vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 357 screenshot tests passed for commit 1772a34 vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 357 screenshot tests passed for commit c2027a9 vs. master! 💯🎉

@williamernest williamernest merged commit cc3ae2f into master Aug 31, 2018
@williamernest williamernest deleted the fix/drawer/click_target branch August 31, 2018 21:01
adrianschmidt pushed a commit to Lundalogik/material-components-web that referenced this pull request Sep 25, 2018
@jamesmfriedman jamesmfriedman mentioned this pull request Sep 26, 2018
49 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants