Remove placeholder in SDG related list

Its value is difficult to read due to the low contrast between the color
of the field and the color of the placeholder text, and we already have
the same information in the hint above it.
This commit is contained in:
Javi Martín
2021-08-25 23:32:17 +02:00
parent c025fef50b
commit b2dd6bcc16
4 changed files with 6 additions and 3 deletions

View File

@@ -89,6 +89,12 @@
suggestions_input[0].id = original_input[0].id + "_suggestions";
$("[for='" + original_input[0].id + "']").attr("for", suggestions_input[0].id);
suggestions_input.attr("aria-describedby", original_input.attr("aria-describedby"));
if ($(original_input).attr("placeholder") === undefined) {
suggestions_input.removeAttr("placeholder");
}
}
};
}).call(this);