From 5f2f1ee2d20693d6b9928a43df96c6bbde4c9cd5 Mon Sep 17 00:00:00 2001
From: "vivi-the-going-merry[bot]"
<308115520+vivi-the-going-merry[bot]@users.noreply.github.com>
Date: Thu, 17 Sep 2026 18:04:25 -0600
Subject: [PATCH] A11y: give the dashboard guarantee icon a real accessible
name
img_alt_valid (IBM Equal Access): the guarantee badge on the dashboard's
Pro-features promo panel had alt="" with no adjacent text conveying its
meaning, so it was invisible to screen readers. The same icon is also used
in the "no views" upsell alongside a visible heading that already states
the guarantee, where alt="" is correct and stays unchanged.
guarantee_icon() now takes an optional $alt, passed only at the dashboard
call site.
---
classes/helpers/FrmAddonsHelper.php | 7 +++++--
classes/views/dashboard/templates/pro-features-list.php | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/classes/helpers/FrmAddonsHelper.php b/classes/helpers/FrmAddonsHelper.php
index dbc48dccec..d4744d26bd 100644
--- a/classes/helpers/FrmAddonsHelper.php
+++ b/classes/helpers/FrmAddonsHelper.php
@@ -334,12 +334,15 @@ public static function show_five_star_rating( $color = 'black' ) {
*
* @since 6.17
*
+ * @param string $alt Accessible name for the icon. Leave blank when adjacent text already
+ * describes the guarantee, so the icon stays decorative.
+ *
* @return void
*/
- public static function guarantee_icon() {
+ public static function guarantee_icon( $alt = '' ) {
// phpcs:disable Generic.WhiteSpace.ScopeIndent
?>
-
+