Skip to content

Fix mobile menu editor crash, header logo, and Services layout (LS-2243) - #18

Merged
brandonmarshal merged 4 commits into
developfrom
LS-2243-mobile-menu-editor-error-and-header-logo-block
Aug 4, 2026
Merged

Fix mobile menu editor crash, header logo, and Services layout (LS-2243)#18
brandonmarshal merged 4 commits into
developfrom
LS-2243-mobile-menu-editor-error-and-header-logo-block

Conversation

@brandonmarshal

@brandonmarshal brandonmarshal commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Added the missing layout attribute to core/details blocks in the mobile menu accordion, fixing a block-editor crash on Dev
  • Replaced the header's hardcoded image logo with the Site Logo block so it no longer reverts to blank every time the header is reset
  • Restructured the Services accordion into paired two-column rows with dividers and spacing adjustments
  • Cleaned up unused draft/duplicate Navigation menus and confirmed the primary menu is named "Main Navigation"

Test plan

  • Mobile Menu template part opens without errors in the Site Editor
  • Header logo now uses Site Logo and persists after resetting the header template part
  • Services accordion displays in 2-column rows with correct spacing/borders on mobile and tablet
  • npm run schema:validate passes
  • npm run build:css compiles cleanly

Summary by CodeRabbit

  • New Features

    • Redesigned the mobile Services navigation into grouped columns for Discover, Create, Build, Launch, Grow, and Evolve.
    • Added phase indicators and refined layouts for Work, Solutions, Pricing, Insights, About, and Systems.
    • Improved mobile menu spacing, branding padding, link arrows, and call-to-action styling.
  • Improvements

    • Updated the header to use the configured site logo.
    • Removed outdated accordion separators from the mobile menu.

- Add missing layout attribute to core/details blocks in the mobile menu
  accordion, fixing a block-editor crash on Dev caused by the block
  supporting layout with no value set
- Replace the header's hardcoded image logo with the Site Logo block so
  it no longer reverts to blank every time the header is reset
- Restructure the Services accordion into paired two-column rows with
  stretch justification, dashed dividers, and spacing adjustments
@brandonmarshal brandonmarshal added area:navigation Menus & nav UX area:theme Theme & styles (templates, template parts, FSE) comp:template-parts Header/footer/loop/nav parts lang:css Stylesheets priority:normal Default priority for most issues. status:needs-review Awaiting code review labels Aug 3, 2026
@brandonmarshal brandonmarshal self-assigned this Aug 3, 2026
@linear-code

linear-code Bot commented Aug 3, 2026

Copy link
Copy Markdown

LS-2243

@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Review Change Stack

Note

.coderabbit.yml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key: "version"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
📝 Walkthrough

Walkthrough

The mobile menu now uses constrained layouts and phase-based Services columns. Accordion defaults and link styles are updated. The header replaces hardcoded image markup with a linked WordPress Site Logo block. Services separator styling is removed.

Changes

Mobile menu and header

Layer / File(s) Summary
Mobile menu layout defaults
parts/mobile-menu.html
Mobile menu groups use constrained spacing and padded branding. Work, Solutions, Pricing, Insights, and About accordions receive explicit default layouts. Design Systems uses link-arrow styling.
Services accordion structure
parts/mobile-menu.html, assets/css/animations.css, src/scss/animations/_mobile-menu-motion.scss
The Services accordion uses bordered, non-stacked columns for six phases. Separator blocks and their styling are removed. The call-to-action and Systems link styles are updated.
Header site logo
patterns/header.php
The hardcoded image is replaced with a linked wp:site-logo block.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested labels: lang:php, release:patch

Suggested reviewers: zaredrogers

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the mobile menu fix, header logo change, and Services layout update.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch LS-2243-mobile-menu-editor-error-and-header-logo-block

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…u-editor-error-and-header-logo-block

# Conflicts:
#	parts/mobile-menu.html

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the LightSpeed Theme’s header and mobile menu to prevent an editor crash, make the header logo persistent by using the Site Logo block, and restructure the Services section of the mobile menu into two-column “phase” rows with dividers.

Changes:

  • Added explicit layout attributes to core/details blocks in the mobile menu template part to prevent a block editor crash.
  • Switched the header pattern from a hardcoded image logo to the Site Logo block.
  • Refactored the Services accordion markup to use paired columns with dashed dividers and spacing adjustments, removing the previous separator styling from the menu motion stylesheets.

Reviewed changes

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

File Description
src/scss/animations/_mobile-menu-motion.scss Removes Services separator styling now replaced by per-row dashed borders in block markup.
patterns/header.php Replaces hardcoded logo image with a Site Logo block in the header pattern.
parts/mobile-menu.html Adds missing layout attributes; restructures Services into two-column rows; adjusts link row spacing.
assets/css/animations.css Compiled CSS update reflecting removal of the old Services separator styling.
Suppressed comments (1)

parts/mobile-menu.html:217

  • This Systems row adds an inline divider border using the neutral-800 preset. The menu already applies border-bottom: 1px solid var(--wp--custom--color--border--card) to .mobile-menu > .mobile-menu-link-row via _mobile-menu-motion.scss, so this override is redundant and breaks semantic colour remapping. Remove the border styles here and keep only the padding adjustment.
<!-- wp:paragraph {"className":"mobile-menu-link-row","style":{"border":{"bottom":{"color":"var:preset|color|neutral-800","width":"1px"}},"spacing":{"padding":{"top":"var:preset|spacing|10"}}}} -->
<p class="mobile-menu-link-row" style="border-bottom-color:var(--wp--preset--color--neutral-800);border-bottom-width:1px;padding-top:var(--wp--preset--spacing--10)"><a href="/systems/">Systems</a></p>

Comment thread parts/mobile-menu.html Outdated
Comment thread parts/mobile-menu.html Outdated
@mergify

mergify Bot commented Aug 3, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

…S-2243)

- Replace hardcoded neutral-800 preset colour with the semantic
  border--card token on the Services column dividers, so they adapt
  correctly between light and dark mode
- Normalize empty border side values from arrays to objects for
  consistency with the matching column block
- Remove the redundant/conflicting inline border on the Systems link
  row, letting the existing CSS rule apply as intended
Comment thread patterns/header.php Outdated

@ZaredRogers ZaredRogers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Change the isLink to "true" on the site logo in the header. Otherwise it looks good

@brandonmarshal

Copy link
Copy Markdown
Collaborator Author

Thank you @ZaredRogers , I have applied that change now.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
patterns/header.php (1)

2-8: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Add the missing @package tag.

The PHP Code Quality job fails at Line 8 because the file comment does not declare a package. Add @package ls-theme before the closing */.

As per path instructions, review patterns/*.php for correct Pattern registration header comments; the pipeline reports the missing @package tag.

Proposed fix
  * Block Types: core/template-part/header
  * Description: Site header — logo, primary navigation, search, light/dark toggle, and "Start a project" CTA.
+ * `@package` ls-theme
  */
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@patterns/header.php` around lines 2 - 8, Add the missing `@package` ls-theme
declaration to the registration docblock in the Header pattern comment, placing
it before the closing */. Also review the header comments in patterns/*.php and
add the same package tag wherever required for valid Pattern registration
metadata.

Sources: Path instructions, Pipeline failures

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@patterns/header.php`:
- Around line 2-8: Add the missing `@package` ls-theme declaration to the
registration docblock in the Header pattern comment, placing it before the
closing */. Also review the header comments in patterns/*.php and add the same
package tag wherever required for valid Pattern registration metadata.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro Plus

Run ID: 6f5b7495-de7f-46e5-9c48-5d0df9149b5b

📥 Commits

Reviewing files that changed from the base of the PR and between 8adde4a and 9460ad1.

📒 Files selected for processing (1)
  • patterns/header.php

@ZaredRogers ZaredRogers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good @brandonmarshal

@brandonmarshal
brandonmarshal merged commit be67839 into develop Aug 4, 2026
5 of 7 checks passed
@brandonmarshal
brandonmarshal deleted the LS-2243-mobile-menu-editor-error-and-header-logo-block branch August 4, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:navigation Menus & nav UX area:theme Theme & styles (templates, template parts, FSE) comp:template-parts Header/footer/loop/nav parts lang:css Stylesheets priority:normal Default priority for most issues. status:needs-review Awaiting code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants