Skip to content

Commit e89422a

Browse files
andrewseguinmmalerba
authored andcommitted
fix(material-experimental/mdc-progress-spinner): set line-height (#22668)
(cherry picked from commit 8ba7148)
1 parent 06c8e79 commit e89422a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/material-experimental/mdc-progress-spinner/progress-spinner.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
// Prevents the spinning of the inner element from affecting layout outside of the spinner.
1111
overflow: hidden;
1212

13+
// Spinners with a diameter less than half the existing line-height will become distorted.
14+
// Explicitly set the line-height to 0px to avoid this issue.
15+
// https://github.com/material-components/material-components-web/issues/7118
16+
line-height: 0;
17+
1318
&._mat-animation-noopable {
1419
&, .mdc-circular-progress__determinate-circle {
1520
// The spinner itself has a transition on `opacity`.

0 commit comments

Comments
 (0)