Skip to content

Commit

Permalink
[CircularProgress] Fix centering (#17482)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiws authored and oliviertassinari committed Sep 19, 2019
1 parent 788bd98 commit 6965e00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/material-ui/src/CircularProgress/CircularProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const styles = theme => ({
/* Styles applied to the root element. */
root: {
display: 'inline-block',
lineHeight: 1, // Keep the progress centered
},
/* Styles applied to the root element if `variant="static"`. */
static: {
Expand All @@ -46,7 +45,9 @@ export const styles = theme => ({
color: theme.palette.secondary.main,
},
/* Styles applied to the `svg` element. */
svg: {},
svg: {
display: 'block', // Keeps the progress centered
},
/* Styles applied to the `circle` svg path. */
circle: {
stroke: 'currentColor',
Expand Down

0 comments on commit 6965e00

Please sign in to comment.