Skip to content

Commit

Permalink
Use the theme color to style the button background (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishbakh-N authored Oct 4, 2024
1 parent ba2c92d commit 4a2879a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/donate-button-v4/src/autoPlayMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ interface CreateButtonProps extends Partial<WidgetConfig> {
nonprofitSlug: string;
onClick: () => void;
url?: string;
bgColor?: string;
}

interface CreateWidgetProps extends Partial<WidgetConfig> {
Expand Down Expand Up @@ -137,6 +138,7 @@ function findAndReplaceLinks() {
widget.show();
},
...options,
bgColor: options.primaryColor,
url: urlString
});
} else {
Expand Down

0 comments on commit 4a2879a

Please sign in to comment.