Add search variant to form block (Find Your Cruise bar)#5
Merged
Conversation
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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a horizontal search bar variant to the
formblock, 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
dark(existing boilerplate style) for the full-bleed navy band. The pill fills the content column (max 1200px) and aligns to the header/content.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
Testing
npm run lintpasses (ESLint + Stylelint)./en/usat desktop and mobile (390px) with the navy band applied.🤖 Generated with Claude Code