Skip to content

Commit

Permalink
Merge pull request #763 from grit96/patch-1
Browse files Browse the repository at this point in the history
fix: pass toast styles through
  • Loading branch information
fkhadra committed May 29, 2022
2 parents 7a1a791 + d2c1c63 commit 02e2120
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ToastContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const ToastContainer = forwardRef<HTMLDivElement, ToastContainerProps>(
isIn={isToastActive(toastProps.toastId)}
style={
{
...toastProps.style,
'--nth': i + 1,
'--len': toastList.length
} as StyleHTMLAttributes<HTMLDivElement>
Expand Down

0 comments on commit 02e2120

Please sign in to comment.