🎨 Improve tooltip

This commit is contained in:
Jeffrey Chen 2024-12-20 20:31:17 +08:00
parent 161e87e761
commit 75af4796f7

View file

@ -28,7 +28,7 @@ export const initBlockPopover = (app: App) => {
if (aElement) {
const tooltipClasses: string[] = [];
let tip = aElement.getAttribute("aria-label");
if (aElement.classList.contains("ariaLabel--warning")) {
if (aElement.classList.contains("has-tooltip--warning")) {
tooltipClasses.push("error");
}
if (aElement.getAttribute("data-type") === "tab-header") {