Use tooltip instead of title

This commit is contained in:
Giuseppe Criscione 2024-10-18 00:18:56 +02:00
parent 0bb1b14107
commit 0b67e7b59a

View File

@ -7,7 +7,7 @@ function createButton(icon: string, title: string) {
const btn = document.createElement("button");
btn.type = "button";
btn.className = `button toolbar-button`;
btn.title = title;
btn.dataset.tooltip = title;
passIcon(icon, (data) => (btn.innerHTML = data));
return btn;
}