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

Commit cc15b5d

Browse files
authored
fix(list): density configuration mixins do not account for leading avatars
Currently when someone uses the MDC list w/ evolution styles, it's possible to generate secondary styles with a different density scale. This can be achieved by using the following mixins: * `one-line-item-density` * `two-line-item-density` * `three-line-item-density` These mixins currently do not account for leading avatars, unlike they do for icons, checkboxes, switches, radio's, images and videos. This commit adds code fo leading avatars.
1 parent 8ba3e29 commit cc15b5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/mdc-list/_evolution-mixins.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,7 @@
883883
@mixin one-line-item-density($density-scale, $query: feature-targeting.all()) {
884884
@include _one-line-item-density($density-scale, $query: $query);
885885

886+
&.mdc-list-item--with-leading-avatar,
886887
&.mdc-list-item--with-leading-icon,
887888
&.mdc-list-item--with-leading-thumbnail,
888889
&.mdc-list-item--with-leading-checkbox,
@@ -900,6 +901,7 @@
900901
@mixin two-line-item-density($density-scale, $query: feature-targeting.all()) {
901902
@include _two-line-item-density($density-scale, $query: $query);
902903

904+
&.mdc-list-item--with-leading-avatar,
903905
&.mdc-list-item--with-leading-icon,
904906
&.mdc-list-item--with-leading-thumbnail,
905907
&.mdc-list-item--with-leading-checkbox,

0 commit comments

Comments
 (0)