From b2222f65b57a944edf993524f55ea03890ce34ed Mon Sep 17 00:00:00 2001 From: John Oleksowicz Date: Fri, 22 Dec 2023 11:05:23 -0600 Subject: [PATCH] Make notices dismissible MAILPOET-5783 --- .../lib/Util/Notices/SenderDomainAuthenticationNotices.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mailpoet/lib/Util/Notices/SenderDomainAuthenticationNotices.php b/mailpoet/lib/Util/Notices/SenderDomainAuthenticationNotices.php index 03989daf16..c0cba4dbf7 100644 --- a/mailpoet/lib/Util/Notices/SenderDomainAuthenticationNotices.php +++ b/mailpoet/lib/Util/Notices/SenderDomainAuthenticationNotices.php @@ -75,11 +75,13 @@ class SenderDomainAuthenticationNotices { ? $this->getNoticeContentForFreeMailUsers($contactCount) : $this->getNoticeContentForBrandedDomainUsers($this->isPartiallyVerified(), $contactCount); + $extraClasses = 'mailpoet-dismissible-notice is-dismissible'; + if ($this->isErrorStyle()) { - return Notice::displayError($noticeContent, '', '', true, false); + return Notice::displayError($noticeContent, $extraClasses, '', true, false); } - return Notice::displayWarning($noticeContent); + return Notice::displayWarning($noticeContent, $extraClasses); } public function isErrorStyle(): bool {