Skip to content

Commit b77d37a

Browse files
authored
refactor(material/list): restore before pseudo element (#29719)
Re-adds the `::before` element that was removed in #29707, because the removal broke some internal tests.
1 parent fead293 commit b77d37a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: src/material/list/_list-inherited-structure.scss

+14
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,20 @@
9292
margin-top: 16px;
9393
}
9494
}
95+
96+
// Not used in Material, but some internal tests seem to depend on it.
97+
&.mdc-list-item--selected::before,
98+
&.mdc-list-item--selected:focus::before,
99+
&:not(.mdc-list-item--selected):focus::before {
100+
position: absolute;
101+
box-sizing: border-box;
102+
width: 100%;
103+
height: 100%;
104+
top: 0;
105+
left: 0;
106+
content: '';
107+
pointer-events: none;
108+
}
95109
}
96110

97111
a.mdc-list-item {

0 commit comments

Comments
 (0)