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

[FormControlLabel] Fix misplaced asterisk when labelPlacement is provided #37831

Conversation

ZeeshanTamboli
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli commented Jul 5, 2023

Fixes #37281

I was not able to push on PR #37286, so created this one and closed that.

Argos detected changes (https://app.argos-ci.com/mui/material-ui/builds/14969/51477913), but I couldn't find any differences after inspecting between the production version and this PR.


Before: https://codesandbox.io/s/exciting-feather-0d0e2o?file=/demo.tsx
After: https://codesandbox.io/s/friendly-nightingale-pt92rn

@ZeeshanTamboli ZeeshanTamboli added bug 🐛 Something doesn't work package: material-ui Specific to @mui/material component: FormControl The React component labels Jul 5, 2023
@mui-bot
Copy link

mui-bot commented Jul 5, 2023

Netlify deploy preview

https://deploy-preview-37831--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against da8762d

@ZeeshanTamboli ZeeshanTamboli marked this pull request as ready for review July 6, 2023 05:12
@samuelsycamore
Copy link
Contributor

Argos is being weird this week for some reason! It's not just you. 😅

@michaldudak
Copy link
Member

Argos is right in this case - if you open your before/after examples you'll notice that the "after" one has the asterisks positioned slightly higher.

@ZeeshanTamboli
Copy link
Member Author

@michaldudak I fixed it now. I had checked the documentations (which Argos checks against), and there I couldn't visually identify any differences. However, thanks for pointing it out in the CodeSandbox examples.

@ZeeshanTamboli ZeeshanTamboli merged commit 73dd1e1 into mui:master Jul 12, 2023
@ZeeshanTamboli ZeeshanTamboli deleted the issue-37281-required-asterisk-in-wrong-place-labelPlacement branch July 12, 2023 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: FormControl The React component package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Required asterisk is in the wrong place when labelPosition is "start", "top", or "bottom"
4 participants