-
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 margin-bottom lint rules for ToggleGroupControl #63960
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -569,6 +569,7 @@ function BackgroundSizeControls( { | |
onChange={ updateBackgroundPosition } | ||
/> | ||
<ToggleControl | ||
__nextHasNoMarginBottom | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding these to ToggleControls as well, since we're already here 😘 |
||
label={ __( 'Fixed background' ) } | ||
checked={ attachmentValue === 'fixed' } | ||
onChange={ toggleScrollWithPage } | ||
|
@@ -577,6 +578,7 @@ function BackgroundSizeControls( { | |
) } | ||
/> | ||
<ToggleGroupControl | ||
__nextHasNoMarginBottom | ||
size="__unstable-large" | ||
label={ __( 'Size' ) } | ||
value={ currentValueForToggle } | ||
|
@@ -626,6 +628,7 @@ function BackgroundSizeControls( { | |
} | ||
/> | ||
<ToggleControl | ||
__nextHasNoMarginBottom | ||
label={ __( 'Repeat' ) } | ||
checked={ repeatCheckedValue } | ||
onChange={ toggleIsRepeated } | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,10 +193,6 @@ | |
.block-editor-global-styles-background-panel__dropdown-content-wrapper { | ||
min-width: 260px; | ||
overflow-x: hidden; | ||
.components-base-control__help, | ||
.components-toggle-control { | ||
margin-bottom: 0; | ||
} | ||
Comment on lines
-196
to
-199
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No longer necessary. |
||
|
||
.components-focal-point-picker-wrapper { | ||
background-color: $gray-100; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing instructions
Add a Group block. In the block inspector, go to the Styles tab
and set a Background image. Click the ItemGroup button with your image now set, and it will show all the controls in a flyout.