diff --git a/components/lib/confirmdialog/ConfirmDialog.vue b/components/lib/confirmdialog/ConfirmDialog.vue index 5347f9a1c..904e5f7d3 100644 --- a/components/lib/confirmdialog/ConfirmDialog.vue +++ b/components/lib/confirmdialog/ConfirmDialog.vue @@ -55,7 +55,6 @@ import BaseConfirmDialog from './BaseConfirmDialog.vue'; export default { name: 'ConfirmDialog', extends: BaseConfirmDialog, - confirmListener: null, closeListener: null, data() { diff --git a/components/lib/confirmpopup/style/ConfirmPopupStyle.js b/components/lib/confirmpopup/style/ConfirmPopupStyle.js index 362780089..7be86f603 100644 --- a/components/lib/confirmpopup/style/ConfirmPopupStyle.js +++ b/components/lib/confirmpopup/style/ConfirmPopupStyle.js @@ -86,8 +86,8 @@ const classes = { icon: ({ instance }) => ['p-confirm-popup-icon', instance.confirmation ? instance.confirmation.icon : null], message: 'p-confirm-popup-message', footer: 'p-confirm-popup-footer', - rejectButton: ({ instance }) => ['p-confirm-popup-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-text' : null], - acceptButton: 'p-confirm-popup-accept' + rejectButton: ({ instance }) => ['p-confirm-popup-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-sm p-button-text' : null], + acceptButton: ({ instance }) => ['p-confirm-popup-accept', instance.confirmation && !instance.confirmation.acceptClass ? 'p-button-sm' : null] }; export default BaseStyle.extend({ diff --git a/doc/confirmpopup/AccessibilityDoc.vue b/doc/confirmpopup/AccessibilityDoc.vue index 9b8821faa..0ded5e1ed 100644 --- a/doc/confirmpopup/AccessibilityDoc.vue +++ b/doc/confirmpopup/AccessibilityDoc.vue @@ -6,7 +6,7 @@ aria-modal is added since focus is kept within the popup.
- When require method of the $confirm instance is used and a trigger is passed as a parameter, ConfirmDialog adds aria-expanded state attribute and aria-controls to the trigger so that the relation between the + When require method of the $confirm instance is used and a trigger is passed as a parameter, ConfirmPopup adds aria-expanded state attribute and aria-controls to the trigger so that the relation between the trigger and the dialog is defined.
ConfirmDialog is displayed by calling the require method of the $confirm instance by passing the options to customize the Popup. target attribute is mandatory to align the popup to its caller.
+ConfirmPopup is displayed by calling the require method of the $confirm instance by passing the options to customize the Popup. The target attribute is mandatory to align the popup to its referrer.
$confirm is available as a property in the application instance for Options API. The service can be injected with the useConfirm function for Composition API.
+The service is available with the useConfirm function for Composition API or using the $confirm property of the application for Options API.
Headless mode is enabled by defining a container slot that lets you implement entire confirmation UI instead of the default elements.
+Templating allows customizing the content where the message instance is available as the implicit variable.
+Templating allows customizing the message content.
{{ slotProps.message.message }}
+{{ slotProps.message.message }}
{{ slotProps.message.message }}
+{{ slotProps.message.message }}
{{ slotProps.message.message }}
+{{ slotProps.message.message }}
{{ slotProps.message.message }}
+{{ slotProps.message.message }}