Skip to content

Spacer: Revert height defaults to 100px if left unset #69450

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

Merged

Conversation

yogeshbhutkar
Copy link
Contributor

@yogeshbhutkar yogeshbhutkar commented Mar 6, 2025

What?

Reverts #68819

This PR reverts the changes made to Spacer Block under PR #68819.

Why and How?

The changes in #68819 were introduced to fix a block validation error that occurred when an empty height value was saved. However, this led to compatibility issues (see #69414). This PR aims to revert that change to address those issues.

Testing Instructions

Inserting a spacer inside a flex container

  1. Install WP version to 6.7 and disable the Gutenberg plugin.
  2. Insert Spacer block within Row/Stack.
  3. Change "Width" to "Fill".
  4. Save the post.
  5. Activate the Gutenberg plugin.
  6. Open the post.
  7. Verify that the Spacer block works fine.

@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended [Block] Spacer Affects the Spacer Block labels Mar 6, 2025
@yogeshbhutkar yogeshbhutkar marked this pull request as ready for review March 6, 2025 04:41
Copy link

github-actions bot commented Mar 6, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: yogeshbhutkar <yogeshbhutkar@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@yogeshbhutkar
Copy link
Contributor Author

Hi @t-hamano,

This PR reverts the changes introduced in #68819. When you have a moment, please review it.
Thanks!

@yogeshbhutkar yogeshbhutkar changed the title Revert: Spacer defaults height to 100px if left unset Spacer: Revert height defaults to 100px if left unset Mar 6, 2025
Copy link
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for the quick fix 🙇‍♂️

@t-hamano t-hamano added the props-bot Adding this label triggers the Props Bot workflow for a PR. label Mar 6, 2025
@github-actions github-actions bot removed the props-bot Adding this label triggers the Props Bot workflow for a PR. label Mar 6, 2025
@yogeshbhutkar
Copy link
Contributor Author

Thanks for the review, @t-hamano 🙇‍♂️!

@t-hamano t-hamano merged commit 997934d into WordPress:trunk Mar 6, 2025
74 checks passed
@github-actions github-actions bot added this to the Gutenberg 20.5 milestone Mar 6, 2025
chriszarate pushed a commit to chriszarate/gutenberg that referenced this pull request Jul 1, 2025
Co-authored-by: yogeshbhutkar <yogeshbhutkar@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Spacer Affects the Spacer Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants