Skip to content

Commit

Permalink
fix(drawer): Remove list item children to be included in click target. (
Browse files Browse the repository at this point in the history
material-components#3480)

(cherry picked from commit cc3ae2f)
  • Loading branch information
abhiomkar authored and williamernest committed Aug 31, 2018
1 parent 730b176 commit e05ca84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
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 @@ -90,6 +90,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

0 comments on commit e05ca84

Please sign in to comment.