Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 6b16dad

Browse files
authored
fix(list): Fix font size + placement for avatar graphic (#1562)
An upcoming fix from upstream. reference: material-components/material-components-web@5abe685
1 parent 7d551c3 commit 6b16dad

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/material-components-web/scss/list/_mixins.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,4 @@
8989

9090
width: $size;
9191
height: $size;
92-
font-size: $size; // To support icon font
9392
}

packages/material-components-web/scss/list/mdc-list.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,19 @@
9090
.mdc-list-item__graphic {
9191
@include mdc-list-graphic-size_(24px);
9292

93-
display: inline-flex;
9493
flex-shrink: 0;
9594
align-items: center;
9695
justify-content: center;
9796
fill: currentColor;
9897
}
9998

99+
// Extra specificity is to override .material-icons display style if used in conjunction with mdc-list-item__graphic
100+
// stylelint-disable plugin/selector-bem-pattern
101+
.mdc-list .mdc-list-item__graphic {
102+
display: inline-flex;
103+
}
104+
// stylelint-enable plugin/selector-bem-pattern
105+
100106
.mdc-list-item__meta {
101107
@include mdc-rtl-reflexive-property(margin, auto, 0, ".mdc-list-item");
102108
}

0 commit comments

Comments
 (0)