[material-ui][FormControlLabel] Add missing labelPlacementEnd class - #48843
Merged
siriwatknp merged 1 commit intoJul 22, 2026
Merged
Conversation
Deploy previewBundle size
Check out the code infra dashboard for more information about this PR. |
labelPlacementEnd class
silviuaavram
approved these changes
Jul 22, 2026
siriwatknp
added a commit
to siriwatknp/material-ui
that referenced
this pull request
Jul 22, 2026
…mentEnd — branch hunk converged) + export snapshot regen for vite 8 arrow stringification (formatting-only)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FormControlLabelcomposes alabelPlacement${capitalize(labelPlacement)}class key for every placement, butlabelPlacementEndwas missing fromformControlLabelClasses— so whilestart/top/bottomrender theirMuiFormControlLabel-labelPlacement*utility class on the root element, the defaultendplacement renders none, andformControlLabelClasses.labelPlacementEnddoesn't exist as a constant for targeting.This adds the missing
labelPlacementEndentry, so:MuiFormControlLabel-labelPlacementEndwhenlabelPlacement="end"(including the default, when the prop is omitted) — consistent with the other three placements;formControlLabelClasses.labelPlacementEndis available for styling and tests:No behavior or style change — the component already passed the key through
composeClasses; it was silently dropped because no utility class was registered for it.For Reviewers
FormControlLabel.jsis untouched — it already emitslabelPlacementEndfor the default placement. The gap was only in the classes definition, so the fix is limited to registering the key in the interface +generateUtilityClasseslist.labelPlacement="end"and the default (prop omitted) case, mirroring the existingstart/top/bottomtests.form-control-label.json+ translations) regenerated viadocs:api:build.