Skip to content

Commit

Permalink
feat(toast-plate): fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrsavk committed Jan 19, 2021
1 parent 2d88465 commit b600f86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/toast-plate/src/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ export const ToastPlate = forwardRef<HTMLDivElement, ToastPlateProps>(
</div>

{needRenderActionsSection && (
<div className={styles.actionsSection}>
<div
className={cn(styles.actionsSection, {
[styles.hasChildren]: Boolean(children),
})}
>
{actionButton && (
<div className={styles.actionButtonWrapper}>{actionButton}</div>
)}
Expand Down
4 changes: 4 additions & 0 deletions packages/toast-plate/src/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
display: flex;
align-items: center;
margin-left: var(--gap-xl);

&.hasChildren {
margin-left: var(--gap-l);
}
}

.leftAddons {
Expand Down

0 comments on commit b600f86

Please sign in to comment.