Skip to content

Commit

Permalink
[Slider] Align value label text center (#23075)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenz Henk authored Oct 15, 2020
1 parent 77e6054 commit a92256e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const ValueLabelRoot = experimentalStyled(
'& .MuiSlider-valueLabelLabel': {
color: props.theme.palette.primary.contrastText,
transform: 'rotate(45deg)',
textAlign: 'center',
},
}));

Expand Down
1 change: 1 addition & 0 deletions packages/material-ui/src/Slider/ValueLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const styles = (theme) => ({
label: {
color: theme.palette.primary.contrastText,
transform: 'rotate(45deg)',
textAlign: 'center',
},
});

Expand Down

0 comments on commit a92256e

Please sign in to comment.