X (Twitter)

Discord

GitHub1.1k
0.775 min read

v1.4.3 — Theme Inheritance Fixes for Provider-Scoped Themes

Posted By

Christopher Burns
Consent Team
Christopher Burns

Patch Changes

  • fix(react): ensure provider theme is applied to ConsentManagerWidget and ConsentManagerDialog (357dcd7)
  • fix(react): ensure CookieBanner correctly inherits provider theme and global classNames/styles (c463eda)

Usage Notes

  • No changes required for apps already passing a theme to ConsentManagerProvider — components now consistently inherit the provider theme.
<ConsentManagerProvider
  options={{
    mode: 'c15t',
    backendURL: process.env.NEXT_PUBLIC_C15T_URL,
    theme: {
      classNames: 'rounded-lg shadow-md',
      styles: { '--c15t-accent': '#4f46e5' },
    },
  }}
>
  <CookieBanner />
  <ConsentManagerDialog />
  <ConsentManagerWidget />
</ConsentManagerProvider>

✨ What's Changed

Full Changelog: c15t@1.4.2...c15t@1.4.3

Thank you to our contributors

c15t.com