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 background color setting #223

Merged
merged 4 commits into from
Jun 15, 2020
Merged

Conversation

adekbadek
Copy link
Member

All Submissions:

Changes proposed in this Pull Request:

Add setting for background color. During testing I've found that GMail and Outlook on iOS in dark mode disregard a white background color even if set, there's nothing we can do about it I think.

Closes #219.

How to test the changes in this Pull Request:

  1. Create a newsletter. Observe the "Typography" panel in sidebar is now named "Styling"
  2. Set a background color, observe the editor background updating
  3. Send a test email, observe the background color is as set in the settings

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Copy link
Contributor

@jeffersonrabb jeffersonrabb left a comment

Choose a reason for hiding this comment

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

Looks good. Left one copy styling note then good to go.

This work raises two new questions, for separate PRs:

  • The typography and background color should be saved with user defined layouts.
  • Some of the group blocks in the default templates have solid white backgrounds. We should remove these so the page background is always visible.

/>
<BaseControl label={ __( 'Background Color', 'newspack-newsletters' ) } id={ id }>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<BaseControl label={ __( 'Background Color', 'newspack-newsletters' ) } id={ id }>
<BaseControl label={ __( 'Background color', 'newspack-newsletters' ) } id={ id }>

Copy link
Member Author

@adekbadek adekbadek Jun 15, 2020

Choose a reason for hiding this comment

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

Fixed: 8fb1840

@adekbadek
Copy link
Member Author

The typography and background color should be saved with user defined layouts.

Created #225

Some of the group blocks in the default templates have solid white backgrounds. We should remove these so the page background is always visible.

Done in 0fd4468

@adekbadek adekbadek merged commit cb142eb into master Jun 15, 2020
@adekbadek adekbadek deleted the add/background-color-setting branch June 15, 2020 11:37
matticbot pushed a commit that referenced this pull request Jun 18, 2020
# [1.2.0](v1.1.0...v1.2.0) (2020-06-18)

### Bug Fixes

* copy ([8fb1840](8fb1840))
* namespace use in register_rest_route ([ccaebbc](ccaebbc))
* raise list limit to maximum ([#224](#224)) ([863c8a7](863c8a7))

### Features

* remove white background from layouts' groups ([0fd4468](0fd4468))
* support background color setting ([2b98984](2b98984)), closes [#219](#219)
* support background color setting ([#223](#223)) ([cb142eb](cb142eb)), closes [#219](#219)
* **mjml:** reponsive images ([#222](#222)) ([c1867d9](c1867d9)), closes [#221](#221)
@matticbot
Copy link
Contributor

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Background color setting
3 participants