Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Drop the redundant Stirling tooltip on the quick nav brand mark (#8411)

EthanHealy01b2ca2cdd110a
diff --git a/frontend/editor/src/core/components/shared/quickNav/QuickNavBrand.tsx b/frontend/editor/src/core/components/shared/quickNav/QuickNavBrand.tsx
index c43db79621..81197fdc52 100644
--- a/frontend/editor/src/core/components/shared/quickNav/QuickNavBrand.tsx
+++ b/frontend/editor/src/core/components/shared/quickNav/QuickNavBrand.tsx
@@ -1,6 +1,5 @@
import { useCallback } from "react";
import { useTranslation } from "react-i18next";
-import { Tooltip } from "@app/components/shared/Tooltip";
import { BrandMark } from "@app/components/shared/BrandMark";
import { useQuickNavHost } from "@app/contexts/QuickNavHostContext";
import { useSecretClicks } from "@app/components/easterEgg/useSecretClicks";
@@ -26,25 +25,20 @@ export function QuickNavBrand({ onReturnHome }: QuickNavBrandProps) {
return (
<div className="quick-nav-brand">
- <Tooltip content={label} position="right" arrow>
- <button
- type="button"
- className="quick-nav-brand-button"
- aria-label={label}
- onClick={(event) => {
- // The rect comes off the event, not a ref: Tooltip clones its child
- // to attach its own ref and reads the child's back off the element,
- // which is what React 19 dropped.
- const rect = event.currentTarget.getBoundingClientRect();
- // Going home stays the button's only advertised job; the counter
- // rides along and can only fire on the last click of a fast burst.
- onReturnHome();
- countClick(rect);
- }}
- >
- <BrandMark height="1.6rem" />
- </button>
- </Tooltip>
+ <button
+ type="button"
+ className="quick-nav-brand-button"
+ aria-label={label}
+ onClick={(event) => {
+ const rect = event.currentTarget.getBoundingClientRect();
+ // Going home stays the button's only advertised job; the counter
+ // rides along and can only fire on the last click of a fast burst.
+ onReturnHome();
+ countClick(rect);
+ }}
+ >
+ <BrandMark height="1.6rem" />
+ </button>
</div>
);
}