Auto-inserting blocks: Add block icon to block inspector panel toggles#54029
Conversation
|
Size Change: +94 B (0%) Total Size: 1.51 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 96b03f7cc410cefd927f515b58add3dc32e95df5. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6016004818
|
ef002f8 to
c259ddc
Compare
c259ddc to
2aa4888
Compare
|
Thanks for the ping. You know, I prefer them on the left, consistent with other toggles. Nevertheless I also hear the argument that this isn't a 1:1 comparison with existing toggles, that the interface on the left is the block information, with iconography and anything else, and the toggle being separate from that. So it's not a strong opinion on my part, and I'm happy to defer to Jay, or perhaps @richtabor if they feel otherwise. |
gziolo
left a comment
There was a problem hiding this comment.
Code-wise, this looks good. Let's wait for 👍🏻 from the design team.
|
Thanks all! I'll go ahead and merge this, and will file a follow-up issue about making a |
#54029) Add block icons to block inspector panel toggle labels, and right-align the toggles.

What?
Add block icons to block inspector panel toggle labels, and right-align the toggles.
Why?
To match the original mockup from #52969. (Note that we don't seem to have precedent for right-aligning toggles; this was briefly discussed, resulting in a tentative okay for trying out this pattern for this new feature.)
How?
A bit of applied flexbox magic.
Testing Instructions
If you prefer video over text, there's a 5-minute demo in the PR description of #52969 (still using the "Before" styling for the toggles, but you get the idea).
Screenshots or screencast