Skip to content

Tag Cloud: Remove unnecessary full-width padding #69725

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

dhruvikpatel18
Copy link
Contributor

@dhruvikpatel18 dhruvikpatel18 commented Mar 27, 2025

Closes #58886

What?

Remove unnecessary padding for full-width Tag Cloud block

Why?

The current implementation adds unexpected left and right padding when the Tag Cloud block is set to full width. This padding contradicts the expected full-width behavior and is no longer necessary with modern theme alignment techniques like useRootPaddingAwareAlignments.

The original padding was added in #27342, but the use case is no longer valid with current WordPress block editor capabilities.

Testing Instructions

  1. Create a new post or page in the WordPress block editor
  2. Insert a Tag Cloud block
  3. Set the Tag Cloud block to full width alignment
  4. Verify that the block extends fully to the page edges without unexpected padding

Screenshots or screencast

Before

Tag.cloud.before.mov

After

Tag.cloud.after.mov

@dhruvikpatel18 dhruvikpatel18 marked this pull request as ready for review March 27, 2025 11:32
Copy link

github-actions bot commented Mar 27, 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: dhruvikpatel18 <dhruvik18@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: akasunil <sunil25393@git.wordpress.org>
Co-authored-by: carolinan <poena@git.wordpress.org>

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

@t-hamano t-hamano added [Type] Enhancement A suggestion for improvement. [Block] Tag Cloud Affects the Tag Cloud Block labels Mar 27, 2025
Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

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

Thank you, @dhruvikpatel18!

The reasoning for removal makes sense here ✅

@Mamaduka Mamaduka added the props-bot Adding this label triggers the Props Bot workflow for a PR. label Mar 28, 2025
@github-actions github-actions bot removed the props-bot Adding this label triggers the Props Bot workflow for a PR. label Mar 28, 2025
@Mamaduka Mamaduka merged commit 4ee2d92 into WordPress:trunk Mar 28, 2025
70 of 74 checks passed
@github-actions github-actions bot added this to the Gutenberg 20.7 milestone Mar 28, 2025
chriszarate pushed a commit to chriszarate/gutenberg that referenced this pull request Jul 1, 2025
Co-authored-by: dhruvikpatel18 <dhruvik18@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: akasunil <sunil25393@git.wordpress.org>
Co-authored-by: carolinan <poena@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Tag Cloud Affects the Tag Cloud Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tag cloud: Reconsider the default padding on full width
3 participants