Virtual whiteboard for sketching hand-drawn like diagrams
fix(editor): make Help button tooltip consistent with toolbar (#11681)
samiran5cf547650b70
diff --git a/packages/excalidraw/components/HelpButton.tsx b/packages/excalidraw/components/HelpButton.tsxindex 39c867cdef..3dfe7da742 100644--- a/packages/excalidraw/components/HelpButton.tsx+++ b/packages/excalidraw/components/HelpButton.tsx@@ -1,6 +1,7 @@import { t } from "../i18n";import { HelpIcon } from "./icons";+import { Tooltip } from "./Tooltip";type HelpButtonProps = {name?: string;@@ -9,13 +10,14 @@ type HelpButtonProps = {};export const HelpButton = (props: HelpButtonProps) => (- <button- className="help-icon"- onClick={props.onClick}- type="button"- title={`${t("helpDialog.title")} — ?`}- aria-label={t("helpDialog.title")}- >- {HelpIcon}- </button>+ <Tooltip label={`${t("helpDialog.title")} — ?`}>+ <button+ className="help-icon"+ onClick={props.onClick}+ type="button"+ aria-label={t("helpDialog.title")}+ >+ {HelpIcon}+ </button>+ </Tooltip>);