GL Header Search Markdown

GL Header Search

Source: https://dripyard.com/docs/greatlakes/components/gl-header-search

Theme: greatlakes

A search component that functions as a full-screen dialog overlay when triggered. Features search form content and close button functionality.

Usage

{{ include('greatlakes:gl-header-search', {
  attributes: attributes,
  content: search_form,
  popover_id: popover_id
}, with_context = false) }}

Slots

Slot Description
content Search form content block

Dialog Implementation

The component uses a `` element for full-screen overlay:

  • Theme integration: Uses theme--primary class
  • Container system: Content respects theme's container constraints
  • Close button: Integrated close functionality with popover coordination

Accessibility Features

  • Semantic HTML: Uses `` element for proper structure
  • ARIA states: Uses aria-expanded for trigger state
  • Keyboard navigation: Full keyboard support with focus management
  • Screen reader support: Hidden text for trigger and close buttons
  • Modal behavior: Proper dialog semantics for overlay

Visual Features

  • Search icon: SVG icon for trigger button
  • Close icon: Animated close button
  • Full overlay: Dialog covers entire viewport
  • Themed background: Uses primary theme colors

Integration

  • Search forms: Compatible with Drupal core search and Search API module
  • Popover coordination: Integrates with header popover system
  • Theme system: Uses theme's color and spacing variables

Column Layout Helper

This is the column layout helper, which you can use to configure

  • Vertical and horizontal spacing
  • Vertical and horizontal alignment
  • Spacing between components
  • Enable stickyness

This helper will not be visible unless editing this page.

Current values:

Padding top Not set
Padding bottom Not set
Horizontal alignment Not set
Vertical alignment Not set
Gutter medium
Stickyness Enabled
Hide mobile Not set
Hide desktop Not set