Skip to content

Commit 8479b29

Browse files
committed
feat: update consentbanner button styles
1 parent 8f162bb commit 8479b29

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/components/providers/ConsentManagerClient.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ import { gtag } from "@c15t/scripts/google-tag"
1111
const LazyConsentDialog = dynamic(() => import("./LazyConsentDialog"), { ssr: false })
1212

1313
const consentTheme = {
14+
consentActions: {
15+
accept: {
16+
variant: "primary",
17+
mode: "filled",
18+
},
19+
customize: {
20+
variant: "neutral",
21+
mode: "ghost",
22+
},
23+
},
1424
slots: {
1525
consentBannerTitle: "text-white!",
1626
consentBannerDescription: "text-secondary! [&_a]:text-brand!",
@@ -62,7 +72,7 @@ export function ConsentManagerClient({ children, gaMeasurementId, legalLinks, i1
6272
i18n,
6373
}}
6474
>
65-
<ConsentBanner legalLinks={["privacyPolicy", "termsOfService"]} />
75+
<ConsentBanner legalLinks={["privacyPolicy", "termsOfService"]} layout={[["reject", "customize"], "accept"]} primaryButton="accept" />
6676
<ConsentDialogSlot />
6777
{children}
6878
</ConsentManagerProvider>

0 commit comments

Comments
 (0)