{# tag_me/templates/tag_me/tag_me_select.html #} {% comment %} REFACTORED: Shared structure with conditional search bar actions Breakpoint: md: (768px) - Desktop (>= 768px): Inline action buttons - Mobile (< 768px): Context-aware action button Only the search bar action area is different between mobile/desktop. Everything else is shared with responsive Tailwind classes. {% endcomment %}
Use arrow keys to navigate options. Press Enter to select. Press Escape to close. Press Backspace in empty search to clear all selections.
+ more
Select tags...
{% include "tag_me/tag_me_select_search_bar_desktop.html" %}
{% include "tag_me/tag_me_select_search_bar_mobile.html" %}

↑↓ navigate Enter select Esc close

{% include "tag_me/tag_me_mobile_footer.html" %}
{% include "tag_me/tag_me_bottom_sheet.html" %}
{% comment %} TEMPLATE CLASS MIGRATION - MAIN SELECT (MD3 REFACTOR v3.1) =========================================================== Date: December 06, 2025 Migration: MD3 Elevation Alignment + Cross-component Dropdown Coordination CROSS-COMPONENT COORDINATION (v3.1): ✅ Added x-on:dropdown-opened.window listener - Closes this dropdown when another dropdown opens - Uses $id('search-menu-dropdown') for unique identification ✅ Added x-effect to dispatch 'dropdown-opened' event - Fires when 'show' becomes true - Other dropdown components (datetime, etc.) receive and close EVENT PATTERN: - Event name: 'dropdown-opened' - Payload: { id: $id('search-menu-dropdown') } - Bubbles to window level - All dropdown components listen and close if id doesn't match MD3 CHANGES APPLIED (ELEVATION ALIGNMENT - v3.0): 1. ✅ Dropdown container: bg-surface-container-lib → bg-surface-container-high-lib [1→3] - Matches datetime component dropdown elevation - Creates proper "floating" effect above page content 2. ✅ Search input idle: bg-surface-lib → bg-surface-container-lib [0→1] - Creates "inset" feel within elevated dropdown - Provides subtle visual depth 3. ✅ Search input focus: focus:bg-surface-container-lib → focus:bg-surface-container-high-lib [1→3] - Input "rises" to match dropdown on focus - Indicates active state clearly 4. ✅ List container: bg-surface-container-lib → bg-surface-container-high-lib [1→3] - Matches dropdown elevation - Items can hover to +1 level (highest) 5. ✅ Search result count sticky: bg-surface-container-lib → bg-surface-container-high-lib - Matches list container for seamless appearance 6. ✅ List items hover/focus: bg-surface-container-high-lib → bg-surface-container-highest-lib [3→4] - Proper +1 elevation step on interaction - Clear visual feedback 7. ✅ Desktop footer: bg-surface-container-lib → bg-surface-container-highest-lib [1→4] - Matches datetime footer elevation - Added border-t for visual separation - Kbd elements updated: bg-surface-lib → bg-surface-container-high-lib ELEVATION HIERARCHY (ALIGNED WITH DATETIME): - Input (closed): surface-lib [0] - Dropdown container: surface-container-high-lib [3] ← elevated - Search input (idle): surface-container-lib [1] ← inset feel - Search input (focus): surface-container-high-lib [3] ← rises - List items (base): surface-container-high-lib [3] ← matches container - List items (hover): surface-container-highest-lib [4] ← +1 elevation - List items (selected): primary-lib ← semantic - Desktop footer: surface-container-highest-lib [4] ← action area NO OTHER CHANGES: - Alpine.js component logic: unchanged - HTMX: unchanged - HTML structure: unchanged - Spacing/layout: unchanged - Z-index values: unchanged - Non-MD3 classes: unchanged {% endcomment %}