Skip to content

Commit 6c981da

Browse files
committed
refactor: clean up CSS styles for toast component
1 parent 1a4b56e commit 6c981da

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

apps/showcase/demo/toast/basic-demo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { toast, Toast } from 'primereact/toast';
44

55
function BasicToast() {
66
return (
7-
<Toast richColors>
7+
<Toast>
88
<Toast.Portal>
99
<Toast.Region>
1010
{({ toast }: ToastRegionInstance) =>

packages/primereact/src/toast/styles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@
139139
outline: none;
140140
position: absolute;
141141
transform: translateX(var(--p-swipe-amount-x)) translateY(calc(var(--p-swipe-amount-y) + calc(var(--p-toast-index) * calc(20px * var(--raise-factor))))) scale(calc(max(0, 1-(var(--p-toast-index) * 0.1))));
142-
overflow-wrap: anywhere;
143142
z-index: calc(100 - var(--p-toast-index));
144143
touch-action: none;
145144
box-shadow:

0 commit comments

Comments
 (0)