Set correct tooltip font-size

This commit is contained in:
Mattias Granlund 2024-01-26 11:22:11 +01:00
parent 91cd79687e
commit 85ce4a7b40

View File

@ -45,7 +45,7 @@ export function tooltip(node: HTMLElement, optsOrString: ToolTipOptions | string
function show() {
tooltip = document.createElement('div') as HTMLDivElement;
// TODO: Can we co-locate tooltip.js & tooltip.postcss?
tooltip.classList.add('tooltip'); // see tooltip.postcss
tooltip.classList.add('tooltip', 'text-base-11'); // see tooltip.postcss
tooltip.innerText = text;
document.body.appendChild(tooltip);
adjustPosition();