diff --git a/components/lib/toast/BaseToast.vue b/components/lib/toast/BaseToast.vue
index a8a7e3c1e..1b5e86117 100644
--- a/components/lib/toast/BaseToast.vue
+++ b/components/lib/toast/BaseToast.vue
@@ -112,8 +112,8 @@ const classes = {
text: 'p-toast-message-text',
summary: 'p-toast-summary',
detail: 'p-toast-detail',
- button: 'p-toast-icon-close p-link',
- buttonIcon: 'p-toast-icon-close-icon'
+ closeButton: 'p-toast-icon-close p-link',
+ closeIcon: 'p-toast-icon-close-icon'
};
const { load: loadStyle } = useStyle(styles, { name: 'toast', manual: true });
diff --git a/components/lib/toast/Toast.d.ts b/components/lib/toast/Toast.d.ts
index 0d4bcb6c0..273b366ba 100755
--- a/components/lib/toast/Toast.d.ts
+++ b/components/lib/toast/Toast.d.ts
@@ -65,12 +65,22 @@ export interface ToastPassThroughOptions {
buttonContainer?: ToastPassThroughOptionType;
/**
* Uses to pass attributes to the button's DOM element.
+ * @deprecated since v3.30.2. Use 'closeButton' option.
*/
button?: ToastPassThroughOptionType;
+ /**
+ * Uses to pass attributes to the button's DOM element.
+ */
+ closeButton?: ToastPassThroughOptionType;
/**
* Uses to pass attributes to the button icon's DOM element.
+ * @deprecated since v3.30.2. Use 'closeIcon' option.
*/
buttonIcon?: ToastPassThroughOptionType;
+ /**
+ * Uses to pass attributes to the button icon's DOM element.
+ */
+ closeIcon?: ToastPassThroughOptionType;
/**
* Uses to manage all lifecycle hooks
* @see {@link BaseComponent.ComponentHooks}
diff --git a/components/lib/toast/ToastMessage.vue b/components/lib/toast/ToastMessage.vue
index b7d1a8bc6..0c32b10a9 100755
--- a/components/lib/toast/ToastMessage.vue
+++ b/components/lib/toast/ToastMessage.vue
@@ -10,8 +10,8 @@