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
Add a block/fullWidth mode for FormControlLabel #11016
Comments
@dantman Do you have any specific implementation in mind? I guess we could replace the |
I believe the reason the The block/list mode doesn't have use for the space after at all, so rather than swapping margin for padding the correct behaviour is for the margin-right to just not be present (be |
@dantman This sounds fair. |
Currently I am using: |
I'm closing as it didn't get traction. |
How/where does it need to get traction? |
@dantman It's me nicely saying, low priority, let's move to a different problem. |
Im using this way. |
Current Behavior
Currently all of the labeled Checkbox/Radio buttons in the Selection Controls are "inline". i.e. They are defined as inline-block and even though
FormGroup
uses flex+column to stretch the Checkbox/Radio the FormControlLabel defines amargin-right: 16px;
.This means that in the block/list examples the right 16px of the list is not clickable and text also cannot span into this area even though the top FormLabel can.
Expected Behavior
FormControlLabel should have a mode that will disable the marginRight. We could re-use
fullWidth
and combine it withdisplay: block;
and applywidth: 100%;
.The text was updated successfully, but these errors were encountered: