mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 21:49:04 +01:00
Use tooltip instead of title
This commit is contained in:
parent
0bb1b14107
commit
0b67e7b59a
@ -7,7 +7,7 @@ function createButton(icon: string, title: string) {
|
|||||||
const btn = document.createElement("button");
|
const btn = document.createElement("button");
|
||||||
btn.type = "button";
|
btn.type = "button";
|
||||||
btn.className = `button toolbar-button`;
|
btn.className = `button toolbar-button`;
|
||||||
btn.title = title;
|
btn.dataset.tooltip = title;
|
||||||
passIcon(icon, (data) => (btn.innerHTML = data));
|
passIcon(icon, (data) => (btn.innerHTML = data));
|
||||||
return btn;
|
return btn;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user