{# tag_me/templates/tag_me/tag_me_select_search_bar_desktop.html #} {% comment %} DESKTOP INLINE ACTION BUTTONS Icon-only buttons that appear conditionally based on state Always visible when relevant (no menu) {% endcomment %}
{% comment %} TEMPLATE MIGRATION NOTES - DESKTOP SEARCH BAR ============================================== Date: November 18, 2025 Migrated by: Claude MAPPING DECISIONS: PRIMARY ACTION (Add Button): - text-indigo-500 dark:text-indigo-400 → text-primary-base (brand color for primary actions) - hover:text-indigo-600 dark:hover:text-indigo-300 → hover:text-primary-hover - hover:bg-gray-100 dark:hover:bg-white/10 → hover:bg-bg-hover - focus:ring-indigo-500 → focus:ring-focus-ring - focus:ring-offset-white dark:focus:ring-offset-gray-900 → focus:ring-offset-bg-base SECONDARY ACTIONS (Clear, Remove, Help, Manage): - text-gray-500 dark:text-gray-400 → text-text-secondary (muted for less emphasis) - hover:text-gray-700 dark:hover:text-gray-300 → hover:text-text-primary (darkens on hover) - hover:bg-gray-100 dark:hover:bg-white/10 → hover:bg-bg-hover - Same focus ring pattern as primary LOADING SPINNER: - text-indigo-500 dark:text-indigo-400 → text-primary-base (brand color) BADGE (Count indicator): - bg-indigo-500 dark:bg-indigo-500 → bg-primary-base (brand color background) - text-white → text-text-on-primary (ensures contrast on colored background) DESIGN PATTERN NOTES: 1. PRIMARY vs ON-PRIMARY: - text-primary-base: Primary color text/icons on regular backgrounds - text-text-on-primary: White/high-contrast text ON primary-colored backgrounds - Example: Badge uses text-on-primary because it has bg-primary-base - This is MD3's contrast pairing system for accessibility 2. BUTTON HIERARCHY: - Primary action (Add): Uses primary-base color for prominence - Secondary actions: Use text-secondary for less emphasis - All share same hover pattern (bg-hover) for consistency 3. INTERACTION STATES: - Default: Primary uses primary-base, secondary uses text-secondary - Hover: Primary darkens to primary-hover, secondary darkens to text-primary - Background: All use same bg-hover on hover for consistency - Focus: All use same focus ring pattern GAPS / CONSIDERATIONS: - None identified - all states map cleanly to existing semantic tokens - Button color hierarchy works well with current token set - MD3 contrast pairing (on-primary) ensures badge accessibility ALL CHANGES: Only class="" attributes modified. No Alpine.js, HTML structure, or other attributes changed. {% endcomment %}