Skip to content

Commit

Permalink
get color from theme if primary/secondary button has that prop
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Nov 14, 2023
1 parent 9140043 commit 4b49b84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/remote-promo-sheet/RemotePromoSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ export function RemotePromoSheet() {
)}
primaryButtonProps={{
...primaryButtonProps,
...(primaryButtonProps.color
? { color: get(colors, primaryButtonProps.color) }
: {}),
...(primaryButtonProps.textColor
? { textColor: get(colors, primaryButtonProps.textColor) }
: {}),
label: getKeyForLanguage(
'primaryButtonProps.label',
data.promoSheet,
Expand Down

0 comments on commit 4b49b84

Please sign in to comment.