Skip to content

Conversation

@aledesma-godaddy
Copy link
Contributor

The spacer block has an error when used with the Layout Selector component from CoBlocks with layouts hosted here in Go. Specifically some Home and a contact layout have spacer blocks with a numeric height number. This block actually expects to see a string value now like '20px' for example.

Tested the spacer layouts in local development environment.
Before:
Screenshot 2025-08-12 at 12 11 21 PM

After:
Screenshot 2025-08-12 at 12 09 43 PM

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Fixes spacer block height attribute format to prevent display errors when using the Layout Selector component from CoBlocks. The spacer block now expects string values with units (e.g., '20px') instead of numeric values.

  • Updated all spacer block height attributes from numeric values to string values with 'px' units
  • Fixed compatibility issue between Go layouts and CoBlocks Layout Selector component

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
partials/layouts/home.php Updated three spacer blocks to use string height values ('60px', '20px', '30px')
partials/layouts/contact.php Updated one spacer block to use string height value ('30px')

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@AnthonyLedesma AnthonyLedesma merged commit 090aed2 into master Aug 14, 2025
9 checks passed
@AnthonyLedesma AnthonyLedesma deleted the WPEX-3936 branch August 14, 2025 14:46
@aledesma-godaddy aledesma-godaddy added this to the 1.8.17 milestone Aug 14, 2025
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.

4 participants