Skip to content

Commit 8ba7148

Browse files
authored
fix(material-experimental/mdc-progress-spinner): set line-height (#22668)
1 parent ee5cf49 commit 8ba7148

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
@@ -11,6 +11,11 @@
1111
// Prevents the spinning of the inner element from affecting layout outside of the spinner.
1212
overflow: hidden;
1313

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

0 commit comments

Comments
 (0)