-
+
+
diff --git a/packages/primevue/src/message/style/MessageStyle.js b/packages/primevue/src/message/style/MessageStyle.js
index 2b391700c..107bdac7c 100644
--- a/packages/primevue/src/message/style/MessageStyle.js
+++ b/packages/primevue/src/message/style/MessageStyle.js
@@ -174,11 +174,12 @@ const theme = ({ dt }) => `
.p-message.p-message-leave-to {
max-height: 0;
opacity: 0;
+ margin: 0;
}
.p-message-leave-active {
overflow: hidden;
- transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s;
+ transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin 0.3s;
}
.p-message-leave-active .p-message-close-button {