Skip to content
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 transforms between Heading & Cover Image #4129

Merged
merged 1 commit into from
Dec 22, 2017

Conversation

mcsf
Copy link
Contributor

@mcsf mcsf commented Dec 21, 2017

Description

Fixes #4003

How Has This Been Tested?

Screenshots (jpeg or gifs if applicable):

gutenberg-heading-cover-image-transform

Types of changes

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

@mcsf mcsf added the [Feature] Blocks Overall functionality of blocks label Dec 21, 2017
Copy link
Member

@jorgefilipecosta jorgefilipecosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 👍 I did some tests and everything worked as I expected. I left a minor comment regarding the styles other than it looks totally good.

@@ -18,6 +17,10 @@
text-align: center;
}

&:not(.components-placeholder) h2 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: .components-placeholder is only used in the editor so I think this rule should not be added in style.scss. Maybe we can keep style.scss as it is and a rule in the editor that makes our h2 placeholder the color we want.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally agree. Amended.

@mcsf mcsf force-pushed the add/heading-cover-image-transforms branch from 88ed3e8 to b9d8f85 Compare December 22, 2017 11:27
@mcsf mcsf merged commit 99f5f1d into master Dec 22, 2017
@mcsf mcsf deleted the add/heading-cover-image-transforms branch December 22, 2017 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transforms between Heading & Cover Image
2 participants