-
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
Fix toolbars, polish inserter, inspector, lots of blocks #1597
Conversation
@@ -108,7 +109,11 @@ registerBlockType( 'core/heading', { | |||
), | |||
focus && ( | |||
<InspectorControls key="inspector"> | |||
<h3>{ __( 'Heading Size' ) }</h3> | |||
<BlockDescription> | |||
<p>{ __( 'Search engines use the headings to index the structure and content of your web pages.' ) }</p> |
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.
Headings are great for readers too 🙂
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.
Hah, yes indeed. I think we'll actually want to go over those descriptions altogether, perhaps in a separate PR. The text description is a little jokey as is ;)
@@ -95,18 +96,29 @@ registerBlockType( 'core/cover-image', { | |||
const sectionClasses = classnames( { | |||
'cover-image': true, | |||
'has-parallax': hasParallax, | |||
'has-background-dim': hasBackgroundDim, |
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.
We'd probably need to add this class to the save
function too
@@ -10,6 +10,9 @@ | |||
color: white; | |||
font-size: 24pt; | |||
line-height: 1em; | |||
max-width: $visual-editor-max-width; | |||
padding: $block-padding; | |||
text-align: center; |
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.
I guess some of these are editor
specific while the text-align
might be shared with the frontend styling too.
This is just a note to take these considerations into account while rebasing.
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.
Small notes but LGTM. 🚢 it after the rebase
cf4d18d
to
809da72
Compare
This is sort of a "trash pickup" PR, and polishes a lot of small things:
BlockDescription
component by @swissspidy and applies it to all blocks with inspector controlsScreenshots: