Files
cv-site/templates/partials/color-theme-switcher.html
T
juanatsap 00254144b3 feat: Add tooltips to info and theme switcher buttons
- Add has-tooltip class and data-tooltip to info button
- Add has-tooltip class and data-tooltip to color theme switcher
- Both buttons on LEFT side show tooltips on RIGHT
- Mobile: tooltips appear on TOP (like macOS Dock)
- Complete tooltip coverage for all action buttons
2025-11-20 18:40:15 +00:00

18 lines
777 B
HTML

{{define "color-theme-switcher"}}
<!-- Color Theme Switcher (Light/Dark/Auto) - Cycles on click -->
<!-- IMPORTANT: This controls COLOR theme, NOT layout theme (.theme-clean) -->
<button id="color-theme-switcher"
class="color-theme-switcher no-print has-tooltip"
aria-label="Toggle color theme"
data-tooltip="Toggle color theme">
<iconify-icon id="themeIcon" icon="mdi:theme-light-dark" width="28" height="28"></iconify-icon>
</button>
<!-- Hidden buttons for compatibility (not displayed) -->
<div style="display: none;">
<button class="theme-option-btn" data-theme-mode="light"></button>
<button class="theme-option-btn" data-theme-mode="dark"></button>
<button class="theme-option-btn active" data-theme-mode="auto"></button>
</div>
{{end}}