Skip to content

Commit

Permalink
fix(drawer): remove pointer events from list item children for right …
Browse files Browse the repository at this point in the history
…click target
  • Loading branch information
abhiomkar committed Aug 30, 2018
1 parent 0eea832 commit 809750e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
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 to be included in click target.
.mdc-list-item__text,
.mdc-list-item__graphic {
pointer-events: none;
}
}

.mdc-drawer--open {
Expand Down
5 changes: 0 additions & 5 deletions packages/mdc-list/mdc-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,14 @@
align-items: center;
justify-content: center;
fill: currentColor;
pointer-events: none;
}

.mdc-list-item__meta {
@include mdc-rtl-reflexive-property(margin, auto, 0, ".mdc-list-item");

pointer-events: none;
}

.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 809750e

Please sign in to comment.