Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add help titles to word counts

Pacu2bfa59e3260b3
diff --git a/saleor/static/dashboard/js/components/google-preview.js b/saleor/static/dashboard/js/components/google-preview.js
index 277b29bd1d..5777ae0e17 100644
--- a/saleor/static/dashboard/js/components/google-preview.js
+++ b/saleor/static/dashboard/js/components/google-preview.js
@@ -42,9 +42,11 @@ function updateCharsCount(seoField) {
if ($fieldLength < $minRecommendedLength) {
$charCountWrapper.addClass('orange-text');
$charCountWrapper.removeClass('green-text');
+ $charCountWrapper.attr('title', gettext('Your input might be a little too short, think of something more descriptive'));
} else {
$charCountWrapper.removeClass('orange-text');
$charCountWrapper.addClass('green-text');
+ $charCountWrapper.attr('title', gettext('Your input fits between the recommended lengths'));
}
$charCount.text($fieldLength);
}