File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
coreui-react/src/components/toast Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export const CToaster = forwardRef<HTMLDivElement, CToasterProps>(
5757 { toasts . length > 0 || children ? (
5858 < div
5959 className = { classNames (
60- 'toaster toast-container p-3 ' ,
60+ 'toaster toast-container' ,
6161 {
6262 'position-fixed' : placement ,
6363 'top-0' : placement && placement . includes ( 'top' ) ,
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export const BasicExample = () => {
8282 return (
8383 <>
8484 <CButton onClick = { () => addToast (exampleToast )} >Send a toast</CButton >
85- <CToaster ref = { toaster } push = { toast } placement = " top-end" />
85+ <CToaster className = " p-3 " placement = " top-end" push = { toast } ref = { toaster } />
8686 </>
8787 )
8888}
@@ -117,7 +117,7 @@ const exampleToast = (
117117return (
118118 <>
119119 < CButton onClick= {() => addToast (exampleToast)}> Send a toast< / CButton>
120- < CToaster ref = {toaster} push = {toast} placement= " top-end" / >
120+ < CToaster className = " p-3 " placement= " top-end" push = {toast} ref = {toaster} / >
121121 < / >
122122)
123123```
@@ -152,7 +152,7 @@ Toasts are slightly translucent to blend in with what's below them.
152152You can stack toasts by wrapping them in a toast container, which will vertically add some spacing.
153153
154154``` jsx preview
155- < CToaster>
155+ < CToaster className = " position-static " >
156156 < CToast autohide= {false } visible= {true }>
157157 < CToastHeader closeButton>
158158 < svg
You can’t perform that action at this time.
0 commit comments