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

Make line-height setting more robust #46873

Merged
merged 1 commit into from Oct 28, 2020

Conversation

WunderBart
Copy link
Member

@WunderBart WunderBart commented Oct 28, 2020

Changes proposed in this Pull Request

Following up on #46792 (comment), this makes the setting more robust against changes in the experimental settings object shape.

Testing instructions

  1. Sandbox a site on wordpress.com.
  2. Sync these changes with yarn dev --sync. (You might need to run yarn build from the root as well if you get some No such file errors. See Editing Toolkit crashes Editor #46811 (comment) for more info).
  3. Open the post editor.
  4. Select a paragraph block.
  5. Verify that the line-height is an option in the settings.

@WunderBart WunderBart requested review from oandregal, noahtallen and a team October 28, 2020 16:09
@WunderBart WunderBart self-assigned this Oct 28, 2020
@matticbot
Copy link
Contributor

@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Oct 28, 2020
@matticbot
Copy link
Contributor

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

@matticbot
Copy link
Contributor

Caution: This PR affects files in the Editing Toolkit Plugin on WordPress.com
Please ensure your changes work on WordPress.com before merging.

D51933-code has been created so you can easily test it on your sandbox. See this FieldGuide page about developing the Editing Toolkit Plugin for more info: PCYsg-ly5-p2

Copy link
Member

@fullofcaffeine fullofcaffeine left a comment

Choose a reason for hiding this comment

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

Tested and the line-height setting is correctly rendered in the settings UI for the paragraph block. :shipit:

@fullofcaffeine fullofcaffeine merged commit 5436ce4 into master Oct 28, 2020
@fullofcaffeine fullofcaffeine deleted the refactor/line-height-support branch October 28, 2020 17:00
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants