toast border color based on variant (#469)
This commit is contained in:
parent
ec758b2d5f
commit
9d05a5d09f
|
@ -56,7 +56,7 @@ export const ToastProvider = ({ children }) => {
|
|||
{toasts.map(toast => (
|
||||
<Toast
|
||||
key={toast.id} bg={toast.variant} show autohide={toast.autohide}
|
||||
delay={toast.delay} className={styles.toast} onClose={() => removeToast(toast.id)}
|
||||
delay={toast.delay} className={`${styles.toast} ${styles[toast.variant]}`} onClose={() => removeToast(toast.id)}
|
||||
>
|
||||
<ToastBody>
|
||||
<div className='d-flex align-items-center'>
|
||||
|
|
|
@ -4,8 +4,17 @@
|
|||
|
||||
.toast {
|
||||
width: auto;
|
||||
border: 1px solid var(--bs-success-border-subtle);
|
||||
color: #fff;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.success {
|
||||
border-color: var(--bs-success-border-subtle);
|
||||
}
|
||||
|
||||
.danger {
|
||||
border-color: var(--bs-danger-border-subtle);
|
||||
}
|
||||
|
||||
.toastClose {
|
||||
|
|
Loading…
Reference in New Issue