-
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
Replace block variation buttons with ToggleGroupControl #45654
Changes from 3 commits
b7d247a
cf95be2
72646cb
f3d8af3
df227da
18842fc
8bce5b8
63db9f0
21b2f5e
89bcb62
73fc56b
523f7b1
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 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -1,6 +1,5 @@ | ||||||||||
.block-editor-block-variation-transforms { | ||||||||||
padding: 0 $grid-unit-20 $grid-unit-20 52px; | ||||||||||
width: 100%; | ||||||||||
|
||||||||||
.components-dropdown-menu__toggle { | ||||||||||
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. Thanks for the follow-ups! Are these style removals intentional? Most of these appear to affect the dropdown list version of the list of variations, which is used when not all of the variations have unique icons. To test this, with the changes applied to scope the social icons for Here's a quick view of trunk versus this PR:
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. Oops, I need more coffee. I forgot to push the changes 😄 Thanks for your patience! 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 worries, I have the opposite problem of having drunk too much coffee! I've re-pulled the changes, and it looks like there are still some differences in the dropdown popover for the transform to variation list. Visually it looks like there's now additional padding / a larger width of the popover, and it overflows the area so there's a horizontal scrollbar:
|
||||||||||
border: 1px solid $gray-700; | ||||||||||
|
@@ -31,8 +30,12 @@ | |||||||||
top: 0; | ||||||||||
} | ||||||||||
} | ||||||||||
} | ||||||||||
|
||||||||||
.block-editor-block-variation-transforms__popover .components-popover__content { | ||||||||||
min-width: 230px; | ||||||||||
andrewserong marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
&.buttons { | ||||||||||
width: 100%; | ||||||||||
} | ||||||||||
|
||||||||||
&.toggle-group-control { | ||||||||||
display: flex; | ||||||||||
} | ||||||||||
andrewserong marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
} |
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.
Is this fieldset necessary? The ToggleGroupControl alone is semantically grouped and labeled. Maybe swap with a
div
if it's just for the wrapper classes?