Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: banner button (#20902)

ecmadao96e4d53b2678
diff --git a/frontend/src/react/components/BannersWrapper.test.tsx b/frontend/src/react/components/BannersWrapper.test.tsx
index efd3a45b0f..dc7682ed0d 100644
--- a/frontend/src/react/components/BannersWrapper.test.tsx
+++ b/frontend/src/react/components/BannersWrapper.test.tsx
@@ -197,6 +197,13 @@ describe("BannersWrapper", () => {
const configureButton = Array.from(container.querySelectorAll("a")).find(
(link) => link.textContent?.includes("Configure now")
);
+ const configureButtonClasses =
+ configureButton?.className.split(/\s+/) ?? [];
+ expect(configureButtonClasses).toContain("bg-white");
+ expect(configureButtonClasses).toContain("text-accent");
+ expect(configureButtonClasses).not.toContain("bg-accent");
+ expect(configureButtonClasses).not.toContain("text-accent-text");
+
act(() => {
configureButton?.dispatchEvent(
new MouseEvent("click", { bubbles: true, cancelable: true })
diff --git a/frontend/src/react/components/BannersWrapper.tsx b/frontend/src/react/components/BannersWrapper.tsx
index f4358e1561..808d73847f 100644
--- a/frontend/src/react/components/BannersWrapper.tsx
+++ b/frontend/src/react/components/BannersWrapper.tsx
@@ -91,6 +91,7 @@ function BannerExternalUrl() {
<RouterLink
to={{ name: SETTING_ROUTE_WORKSPACE_GENERAL }}
className={buttonVariants({
+ appearance: "secondary",
className:
"h-auto rounded-md bg-white py-2 pr-2 pl-4 text-base font-medium text-accent shadow-xs hover:bg-indigo-50",
})}