Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Half Ratings display are broken when text-align: center #20053

Closed
lorisdev opened this issue Mar 10, 2020 · 1 comment · Fixed by #20055
Closed

Half Ratings display are broken when text-align: center #20053

lorisdev opened this issue Mar 10, 2020 · 1 comment · Fixed by #20055
Labels
component: rating This is the name of the generic UI component, not the React module!

Comments

@lorisdev
Copy link

Current Behavior 😯

When a text-align: centerapplies on a Rating component with half rating visible, the display of the half rating is broken

Capture d’écran 2020-03-10 à 12 14 49

Expected Behavior 🤔

The half rating should preserve the same expected display as when text-align: left

Steps to Reproduce 🕹

Codesandbox reproduction :
https://codesandbox.io/s/delicate-hooks-ggn5z

Relevant code to reproduce the bug :

<Box textAlign="center">
        <Rating readOnly value={4.5} precision={0.5} />
</Box>

Context 🔦

I am trying to display Rating in a context where text-align: center is active

Your Environment 🌎

Tech Version
Material-UI v4.9.5
React 16.13.0
Browser Chrome v80.0.3987.132
@mlizchap
Copy link
Contributor

I'd like to give this a shot if that's OK

mlizchap pushed a commit to mlizchap/material-ui that referenced this issue Mar 10, 2020
@zannager zannager added the component: rating This is the name of the generic UI component, not the React module! label Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: rating This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants