Skip to content

Add search variant to form block (Find Your Cruise bar)#5

Merged
lamontacrook merged 2 commits into
mainfrom
find-a-cruise-search-form
Jul 8, 2026
Merged

Add search variant to form block (Find Your Cruise bar)#5
lamontacrook merged 2 commits into
mainfrom
find-a-cruise-search-form

Conversation

@lamontacrook

Copy link
Copy Markdown
Contributor

What

Adds a horizontal search bar variant to the form block, styled to match the Holland America "Find Your Cruise" pattern: a white pill with joined dropdowns divided by thin rules, navy bold labels with chevrons, and an orange CTA segment. Stacks into a rounded card on mobile.

Details

  • Sheet-driven — fields come from a spreadsheet (Destinations / Date / Duration selects + submit button), consistent with the existing form block.
  • Labels are visually hidden and carried by each select's placeholder option, matching the mockup (no visible labels above the controls).
  • Band background is left to the section level — the block no longer hardcodes a background. Use Section Metadata Style = dark (existing boilerplate style) for the full-bleed navy band. The pill fills the content column (max 1200px) and aligns to the header/content.
  • Submit — when the block has no submit endpoint, submitting previews the selected query in an alert (placeholder for future search-results behavior). With a submit link authored, it POSTs as usual.

Preview

Search bar on the US homepage:
https://find-a-cruise-search-form--hal--adobedevxsc.aem.page/en/us

Note: the search bar currently shares a section with the hero on that page. For a clean navy band behind only the bar, place the form in its own section (section divider between the form and hero), then set that section's Style to dark.

Testing

  • npm run lint passes (ESLint + Stylelint).
  • Verified rendering on /en/us at desktop and mobile (390px) with the navy band applied.

🤖 Generated with Claude Code

Adds a horizontal "search bar" variant to the form block, styled as a
pill with joined dropdowns and a CTA button (matching the Holland
America "Find Your Cruise" pattern). The band background is left to the
section level (e.g. Section Metadata Style "dark") so it composes with
page styling; the pill fills the content column and stacks into a card
on mobile.

Field labels are visually hidden and carried by each select's
placeholder option. When the block has no submit endpoint, submitting
previews the selected query in an alert as a placeholder for future
search behavior.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@aem-code-sync

aem-code-sync Bot commented Jul 8, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run all PSI checks
  • Re-run failed PSI checks
  • Re-sync branch
Commits

@aem-code-sync

aem-code-sync Bot commented Jul 8, 2026

Copy link
Copy Markdown
Page Scores Audits Google
📱 /en/us PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /en/us PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

The search variant now owns its vertical padding so the pill always has
breathing room within the band, independent of the section background.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lamontacrook
lamontacrook merged commit 35ee053 into main Jul 8, 2026
2 checks passed
@lamontacrook
lamontacrook deleted the find-a-cruise-search-form branch July 8, 2026 16:47
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.

1 participant