Skip to content

Conversation

@chukaofili
Copy link
Contributor

feat: Add theme support to CannyChangelog component

Issue

The CannyChangelog component doesn't support the theme prop, even though Canny's SDK supports theme: 'light' | 'dark' | 'auto'. This forces the widget to always render in light mode, breaking dark mode support in apps.

Solution

Add theme to ChangeLogOptions type and pass it through in the CannyChangelog component.

Changes

  • src/makes/Canny.ts: Add theme?: "auto" | "light" | "dark" to ChangeLogOptions
  • src/views/CannyChangelog/index.tsx: Extract and pass theme prop to initChangelog()

Usage

<CannyChangelog theme="auto" position="bottom" align="left">
  What's New
</CannyChangelog>

Fully backward compatible - theme is optional and defaults to existing behavior.

@kearisp Thanks for this package 🙂

@chukaofili chukaofili changed the title feat: Add theme support to CannyChangelog component feat: Add theme support to CannyChangelo Jan 25, 2026
@chukaofili chukaofili changed the title feat: Add theme support to CannyChangelo feat: Add theme support to CannyChangelog Jan 25, 2026
@kearisp kearisp self-requested a review January 25, 2026 17:38
Copy link
Owner

@kearisp kearisp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update, everything is great.

@kearisp kearisp merged commit 0acbd78 into kearisp:master Jan 25, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants