{# tag_me/templates/tag_me/tag_me_bottom_sheet.html #} {% comment %} MOBILE BOTTOM SHEET - Add Tag Modal Slides up from bottom when user wants to create a new tag Has backdrop, drag handle, pre-filled input, and actions {% endcomment %}
{% comment %} TEMPLATE MIGRATION NOTES - BOTTOM SHEET ========================================= Date: November 18, 2025 Migrated by: Claude MAPPING DECISIONS: - bg-black/50 → bg-overlay-backdrop (modal backdrop, same light/dark) - z-[70] → z-modal-backdrop (using semantic z-index) - z-[80] → z-modal (panel above backdrop) - bg-white dark:bg-gray-800 → bg-bg-base (base surface) - border-gray-200 dark:border-white/10 → border-border-base (standard outline) - bg-gray-300 dark:bg-gray-600 → bg-border-base (drag handle - subtle UI element) - text-gray-900 dark:text-white → text-text-primary (headings) - text-gray-600 dark:text-gray-400 → text-text-secondary (body text) - text-gray-700 dark:text-gray-300 → text-text-secondary (labels) - bg-gray-50 dark:bg-white/5 → bg-bg-raised (input background) - placeholder:text-gray-400 dark:placeholder:text-gray-500 → placeholder:text-placeholder - border-gray-300 dark:border-gray-600 → border-border-base (input border) - focus:border-indigo-500 → focus:border-border-focus - focus:ring-indigo-500 → focus:ring-focus-ring - text-gray-500 → text-text-muted (helper text) - bg-red-50 dark:bg-red-900/50 → bg-error-bg (error background) - border-red-200 dark:border-red-500/50 → border-error-border - text-red-500 dark:text-red-400 → text-error-base (error icon) - text-red-800 dark:text-red-300 → text-error-text (error heading) - text-red-700 dark:text-red-400 → text-error-text-secondary (error body) - bg-gray-200 dark:bg-gray-700 → bg-bg-hover (cancel button) - hover:bg-gray-300 dark:hover:bg-gray-600 → hover:bg-bg-hover (button hover) - bg-indigo-600 → bg-primary-base (primary button) - hover:bg-indigo-500 → hover:bg-primary-hover - text-white → text-text-on-primary GAPS / TOKENS TO CONSIDER ADDING: 1. DRAG HANDLE: Currently using border-base for bg-gray-300/gray-600 - Consider: --color-surface-variant or --color-outline for subtle UI elements - Current mapping works but could be more semantic 2. INPUT BACKGROUNDS: Currently using bg-raised for bg-gray-50/white/5 - Consider: --color-input-bg token for form inputs - Main project might want different input backgrounds vs cards 3. SECONDARY BUTTON BACKGROUNDS: Using bg-hover for gray-200/gray-700 - Works but could be more explicit - Consider: --color-button-secondary-bg token 4. BUTTON HOVER STATES: Currently reusing bg-hover for button hover - Could benefit from dedicated button hover tokens - Main project may want different hover behaviors for buttons vs surfaces 5. Z-INDEX: Added z-modal-backdrop (1040) and z-modal (1050) - Verify these align with main project's z-index scale - May need z-bottomsheet if distinct from generic modal DARK MODE TEST: This template is a good test case for dark mode functionality because it has: - Multiple surface levels (backdrop, panel, input) - Text hierarchy (heading, body, muted) - State colors (error states) - Interactive elements (buttons with hover) If dark mode works here, the approach is solid! ALL CHANGES: Only class="" attributes modified. No Alpine.js, HTML structure, or other attributes changed. {% endcomment %}