Commit 7eaba320694 for woocommerce
commit 7eaba3206943a7b1ebc6b7649e3fd5f960ac47ea
Author: Poli Gilad <83961704+poligilad-auto@users.noreply.github.com>
Date: Fri Jun 12 14:43:13 2026 +0200
Fix: Improve color contrast for attribute placeholder text (WCAG 2.2 AA) (#65608)
Fix: Replace opacity-based placeholder color with accessible $gray-700 token (WCAG 2.2 AA)
Replaces `opacity: 0.4` on `.wc-metaboxes-wrapper .wc-metabox .placeholder`
with `color: $gray-700` (#757575), which meets the WCAG 2.2 SC 1.4.3
minimum contrast ratio of 4.5:1 against white.
diff --git a/plugins/woocommerce/changelog/63792-fix-placeholder-contrast b/plugins/woocommerce/changelog/63792-fix-placeholder-contrast
new file mode 100644
index 00000000000..03775fcff12
--- /dev/null
+++ b/plugins/woocommerce/changelog/63792-fix-placeholder-contrast
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Fix insufficient color contrast on attribute placeholder text to meet WCAG 2.2 AA requirements.
\ No newline at end of file
diff --git a/plugins/woocommerce/client/legacy/css/admin.scss b/plugins/woocommerce/client/legacy/css/admin.scss
index e9fe797c65f..5b1a8e936fc 100644
--- a/plugins/woocommerce/client/legacy/css/admin.scss
+++ b/plugins/woocommerce/client/legacy/css/admin.scss
@@ -6692,7 +6692,7 @@ img.help_tip {
}
}
.placeholder {
- opacity: 0.4;
+ color: $gray-700;
}
}
}