Skip to content

Commit

Permalink
Merge pull request #156 from nlxai/jm-custom-button-img-url
Browse files Browse the repository at this point in the history
Image URL support for journey manager custom buttons
  • Loading branch information
peterszerzo authored Aug 26, 2024
2 parents a68ea73 + d2f4f1a commit 75bf4e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/journey-manager/src/ui/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ const CustomButton: FC<{
}
}}
>
{buttonConfig.iconUrl != null ? (
<img src={buttonConfig.iconUrl} role="presentation" />
) : null}
{buttonConfig.label}
</button>
</>
Expand Down
3 changes: 2 additions & 1 deletion packages/journey-manager/src/ui/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ button {
background-color: rgba(0, 0, 0, 0.07);
}

.drawer-button svg {
.drawer-button svg,
.drawer-button img {
flex: 0 0 14px;
height: 14px;
display: inline-block;
Expand Down

0 comments on commit 75bf4e7

Please sign in to comment.