From b0d0990f06599f1bb7e6da94b8aecf66f5df333f Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev Date: Wed, 18 Mar 2026 10:25:24 +0200 Subject: [PATCH] [APP-2532] Improve admin notice accessibility --- modules/legacy/components/admin.php | 2 +- modules/settings/notices/renewal-notice.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/legacy/components/admin.php b/modules/legacy/components/admin.php index ffc15fd2..55d2b46b 100644 --- a/modules/legacy/components/admin.php +++ b/modules/legacy/components/admin.php @@ -113,7 +113,7 @@ public function admin_notices() { } } -
+
diff --git a/modules/settings/notices/renewal-notice.php b/modules/settings/notices/renewal-notice.php index 492a7237..48fd5218 100644 --- a/modules/settings/notices/renewal-notice.php +++ b/modules/settings/notices/renewal-notice.php @@ -122,7 +122,7 @@ public function content(): string { $this->type = $text['type']; $icon = $this->get_notice_icon( $text['type'] ); return sprintf( - '
%s
%s%s%s
', + '
%s%s%s
', $icon, $text['title'], $text['description'], @@ -138,7 +138,8 @@ public function render() { $text = ( null !== $this->days_diff ) ? $this->get_renewal_text() : [ 'type' => $this->type ]; $type_attr = isset( $text['type'] ) ? $text['type'] : $this->type; printf( - '
%5$s
', + '
%6$s
', + esc_attr__( 'Notice', 'pojo-accessibility' ), esc_attr( $type_attr ), esc_attr( $this->get_id() ), esc_attr( $this->get_action_name() ),