Skip to content

Fix Portfolio archive template, mobile menu, and header UI issues - #17

Merged
brandonmarshal merged 3 commits into
developfrom
fix/pattern-simple-ui-adjustments
Aug 3, 2026
Merged

Fix Portfolio archive template, mobile menu, and header UI issues#17
brandonmarshal merged 3 commits into
developfrom
fix/pattern-simple-ui-adjustments

Conversation

@brandonmarshal

@brandonmarshal brandonmarshal commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • /portfolio was rendering the generic archive.html instead of its custom design — renamed templates/page-work-archive.html to templates/archive-project.html so it matches the project CPT in the template hierarchy, and removed the now-unused customTemplates entry from theme.json.
  • Mobile menu drawer was unreadable in dark mode (core Navigation hardcodes a literal #fff/#000 fallback when no background/text color is set) — overridden with the theme's existing adaptive tokens, matching core's own selector specificity so the override actually applies.
  • Fixed a font mismatch between the mobile menu's accordion rows and flat link rows (Systems, Contact) that was reading as uneven padding, and a row-alignment quirk in the Site Editor caused by the drawer's layout type.
  • Fixed the header's collapsed hamburger toggle sitting near dead-center on tablet/mobile instead of docking next to the actions group — scoped to the nav's own collapse breakpoint so desktop spacing is untouched.
  • Fixed a visibly larger gap below the header than above it, caused by the following section's block-gap margin stacking against the header's own padding.

Test plan

Static checks:

  • npm run lint:json — passed
  • npm run schema:validate — passed
  • npm run build:css — compiles cleanly, output matches source with no stray diff

Verified live on a local WordPress instance:

  • /portfolio renders the custom template instead of the generic archive
  • Mobile menu drawer background/text/close button all correctly follow light and dark mode
  • Mobile menu accordion rows and link rows match in font and alignment
  • Hamburger toggle sits next to the actions group on tablet/mobile; desktop nav spacing unchanged
  • Gap below the header now matches the gap above it

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added an archive page for projects, including the site header, project archive content, and footer.
  • Improvements

    • Improved mobile navigation spacing, positioning, and overlay contrast.
    • Mobile menu links now use the standard body font for consistency.
    • Adjusted header spacing and collapsed navigation placement across screen sizes.

…m design

- Rename templates/page-work-archive.html to templates/archive-project.html so it matches the `project` CPT archive slot in the template hierarchy
- Remove the now-unneeded "page-work-archive" entry from customTemplates in theme.json
- Override core Navigation's hardcoded #fff/#000 overlay background and text with the theme's adaptive surface/text tokens, so the drawer follows dark mode instead of staying stuck on light-mode values
- Match core's own selector specificity so the overrides actually win over core's fallback rules
- Remove the stray heading-font override on the flat link rows (Systems, Contact) so they match the accordion rows' font, fixing the apparent uneven padding
- Change the drawer's group layout from "constrained" to "flow" so accordion rows and link rows no longer diverge at wider (desktop editor) canvas widths
- Reapply the side padding lost from that layout change directly, using the same spacing token as the header
- Revert header markup restructuring that fixed hamburger centering but broke desktop nav spacing as a side effect
- Add a breakpoint-scoped override (max-width matching the nav's own mobileMenuBreakpoint) so the collapsed hamburger docks next to the actions group, leaving desktop untouched
- Zero out the root blockGap's margin-top on whatever section follows the header, since it was stacking with the header's own bottom padding and made the gap below look uneven against the top
@brandonmarshal brandonmarshal added area:navigation Menus & nav UX area:theme Theme & styles (templates, template parts, FSE) comp:template-parts Header/footer/loop/nav parts comp:theme-json Tokens, presets, settings lang:css Stylesheets lang:json JSON config/content priority:normal Default priority for most issues. release:patch Backwards‑compatible bug fixes requiring a PATCH version bump (e.g., small fixes, docs updates). status:needs-review Awaiting code review labels Aug 3, 2026
@brandonmarshal brandonmarshal self-assigned this Aug 3, 2026
@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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro Plus

Run ID: 1ab692d2-2046-48f3-9856-c7df2211b49a

📥 Commits

Reviewing files that changed from the base of the PR and between d1d94e8 and 03ce321.

📒 Files selected for processing (6)
  • assets/css/animations.css
  • parts/mobile-menu.html
  • src/scss/animations/_header-motion.scss
  • src/scss/animations/_mobile-menu-motion.scss
  • templates/archive-project.html
  • theme.json
💤 Files with no reviewable changes (1)
  • theme.json

📝 Walkthrough

Walkthrough

Changes

The PR updates mobile navigation layout and colors, adjusts responsive header spacing and positioning, and adds a project archive template while removing the previous custom template registration.

Navigation and archive template

Layer / File(s) Summary
Mobile navigation layout and styling
parts/mobile-menu.html, src/scss/animations/_mobile-menu-motion.scss, assets/css/animations.css
The mobile menu uses flow layout, explicit side padding, adaptive overlay colors, and inherited body typography.
Responsive header spacing and navigation positioning
src/scss/animations/_header-motion.scss, assets/css/animations.css
The header removes following-section top margin and positions collapsed navigation toward the actions group below 1024px.
Project archive template integration
templates/archive-project.html, theme.json
The project archive template includes header and footer parts around the work archive pattern. The previous custom page template entry is removed.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

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 archive template, mobile menu, and header UI changes in the pull request.
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 unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/pattern-simple-ui-adjustments

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.

@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

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 fixes the project/portfolio archive template resolution and several header/mobile navigation UI issues (dark-mode readability, alignment, and spacing) in the LightSpeed block theme.

Changes:

  • Aligns the project CPT archive template with WordPress’ template hierarchy and removes the now-unused custom template registration.
  • Fixes mobile navigation drawer dark-mode contrast by overriding core’s hardcoded overlay colours with existing adaptive theme tokens, and restores consistent mobile-menu padding after switching layout type.
  • Adjusts header spacing and collapsed navigation alignment on smaller breakpoints, including removing the extra “below header” gap caused by block-gap margin stacking.

Reviewed changes

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

Show a summary per file
File Description
theme.json Removes the unused page-work-archive entry from customTemplates after the template hierarchy change.
templates/archive-project.html Adds the correct archive-project template to ensure the project CPT archive uses the intended design pattern.
src/scss/animations/_mobile-menu-motion.scss Adds explicit mobile-menu padding and overrides core Navigation overlay background/text colours with adaptive tokens; removes link-row font override for consistency.
src/scss/animations/_header-motion.scss Removes the first-post-header block-gap margin and repositions collapsed navigation next to the actions group at the intended breakpoint.
parts/mobile-menu.html Switches the mobile menu Group layout to flow to avoid editor-width centring quirks.
assets/css/animations.css Compiled CSS output reflecting the SCSS updates above.

@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 d8e6f2e into develop Aug 3, 2026
7 of 11 checks passed
@brandonmarshal
brandonmarshal deleted the fix/pattern-simple-ui-adjustments 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 comp:theme-json Tokens, presets, settings lang:css Stylesheets lang:json JSON config/content priority:normal Default priority for most issues. release:patch Backwards‑compatible bug fixes requiring a PATCH version bump (e.g., small fixes, docs updates). status:needs-review Awaiting code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants