Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit cc3ae2f

Browse files
abhiomkarwilliamernest
authored andcommitted
fix(drawer): Remove list item children to be included in click target. (#3480)
1 parent 5dea634 commit cc3ae2f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

demos/drawer/dismissible-drawer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ <h1 class="mdc-typography--headline4">Dismissible Drawer</h1>
220220
mainEl.querySelector('input').focus();
221221
});
222222
});
223+
223224
</script>
224225
</body>
225226
</html>

packages/mdc-drawer/common.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@
8989
.mdc-list-divider {
9090
margin: 3px 0 4px 0;
9191
}
92+
93+
// Prevents list item children from being included in the click target.
94+
.mdc-list-item__text,
95+
.mdc-list-item__graphic {
96+
pointer-events: none;
97+
}
9298
}
9399

94100
.mdc-drawer--open {

packages/mdc-list/mdc-list.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@
103103

104104
.mdc-list-item__text {
105105
@include mdc-typography-overflow-ellipsis;
106-
107-
pointer-events: none;
108106
}
109107

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

0 commit comments

Comments
 (0)