-
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
Add HTML block with preview. #1391
Conversation
We'll want to separate these out.
<div> | ||
{ focus && | ||
<BlockControls key="controls"> | ||
<ul className="components-toolbar"> |
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.
Can't we use the regular Toolbar
component for this? I guess we just need to make the icon optional and drop the fixed width?
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.
It forces icon at the moment. And we'll probably just create a segmented-control out of this in any case.
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.
as part of #1256 I updated the Toolbar
component to allow this. Edit: I updated the styling only. but seems easy to drop the icon requirement
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.
Could be done separately of course
Designed new icon for the block here: WordPress/dashicons#207 |
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.
Works great, feel free to merge when the tests are fixed
Awesome! |
Closes #1386.