Skip to content

Commit

Permalink
refactor(material/list): restore before pseudo element (#29719)
Browse files Browse the repository at this point in the history
Re-adds the `::before` element that was removed in #29707, because the removal broke some internal tests.
  • Loading branch information
crisbeto authored Sep 11, 2024
1 parent fead293 commit b77d37a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/material/list/_list-inherited-structure.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,20 @@
margin-top: 16px;
}
}

// Not used in Material, but some internal tests seem to depend on it.
&.mdc-list-item--selected::before,
&.mdc-list-item--selected:focus::before,
&:not(.mdc-list-item--selected):focus::before {
position: absolute;
box-sizing: border-box;
width: 100%;
height: 100%;
top: 0;
left: 0;
content: '';
pointer-events: none;
}
}

a.mdc-list-item {
Expand Down

0 comments on commit b77d37a

Please sign in to comment.