-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 possibility to position help text below the label of CheckboxControl component #30025
base: trunk
Are you sure you want to change the base?
Conversation
Size Change: +134 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Thanks for working on this @grzim. I think this does need more design feedback, so it's good that you added the label. We really need to consider how this looks alongside other controls. The design in #28864 is inconsistent with how ToggleControl looks when shown in a block inspector (see the paragraph block). The problem here might be that ToggleControl is wrong as well. The proposed CheckboxControl style: They don't look right when used together. Ultimately we should just be able to drop these components in and have the look the same. I'd vote for not having a As an aside, ToggleControl does have a similar styling discrepancy, this is how it looks in the editor settings dialog: |
Description
Closes #30023
Adds a property
helpPosition
toCheckboxControl
allowing to change the place wherehelp
is rendered, allowing to display the text under the label (as it is proposed in a design for #29458).The property is set to
left
by default which means to render help text the same as it used to be.Broken CheckboxControl header addressed in a separate PR #30037
How has this been tested?
In order to test a component, please see
/story/components-checkboxcontrol--all
in the storybookScreenshots
Types of changes
New feature added to the
CheckboxControl
componentChecklist: