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
1 change: 1 addition & 0 deletions demos/drawer/dismissible-drawer.html
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ <h1 class="mdc-typography--headline4">Dismissible Drawer</h1>
mainEl.querySelector('input').focus();
});
});

</script>
</body>
</html>
6 changes: 6 additions & 0 deletions packages/mdc-drawer/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@
.mdc-list-divider {
margin: 3px 0 4px 0;
}

// Prevents list item children from being included in the click target.
.mdc-list-item__text,
.mdc-list-item__graphic {
pointer-events: none;
}
}

.mdc-drawer--open {
Expand Down
2 changes: 0 additions & 2 deletions packages/mdc-list/mdc-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@

.mdc-list-item__text {
@include mdc-typography-overflow-ellipsis;

pointer-events: none;
}

$mdc-list-item-primary-text-baseline-height_: 32px;
Expand Down