-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
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. |
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.
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