Updated toasts
This commit is contained in:
parent
9d6fec0a56
commit
378486954c
2 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
.Toast {
|
||||
.toast {
|
||||
background: var(--dialog-bg);
|
||||
border-radius: $card-corner;
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.1);
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
animation: slideRight 100ms ease-out;
|
||||
}
|
||||
|
||||
.Header {
|
||||
.header {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
|
|
|||
|
|
@ -22,13 +22,13 @@ const Toast = ({
|
|||
const { onCloseClick, ...toastProps } = props
|
||||
|
||||
const classes = classNames(props.className, {
|
||||
Toast: true,
|
||||
[styles.toast]: true,
|
||||
})
|
||||
|
||||
return (
|
||||
<ToastPrimitive.Root {...toastProps} className={classes}>
|
||||
{title && (
|
||||
<div className="Header">
|
||||
<div className={styles.header}>
|
||||
<ToastPrimitive.Title asChild>
|
||||
<h3>{title}</h3>
|
||||
</ToastPrimitive.Title>
|
||||
|
|
|
|||
Loading…
Reference in a new issue