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
This commit is contained in:
juanatsap
2025-11-20 18:40:15 +00:00
parent 2497dbaa3e
commit 00254144b3
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
{{define "info-button"}}
<!-- Info Button (Bottom Left) -->
<button id="info-button" class="info-button no-print" aria-label="{{if eq .Lang "es"}}Información{{else}}Information{{end}}" onclick="document.getElementById('info-modal').showModal()">
<button id="info-button" class="info-button no-print has-tooltip"
aria-label="{{if eq .Lang "es"}}Información{{else}}Information{{end}}"
data-tooltip="{{if eq .Lang "es"}}Información{{else}}Information{{end}}"
onclick="document.getElementById('info-modal').showModal()">
<iconify-icon icon="mdi:information-outline" width="24" height="24"></iconify-icon>
</button>
{{end}}