Merge pull request #1906 from thelounge/xpaw/aria-label-input

Set aria-label on main input
This commit is contained in:
Jérémie Astori 2017-12-28 00:13:52 -05:00 committed by GitHub
commit 322987a204
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -402,7 +402,7 @@ $(function() {
if (type === "channel" || type === "query") {
placeholder = `Write to ${chan.data("title")}`;
}
input.attr("placeholder", placeholder);
input.attr("placeholder", placeholder).attr("aria-label", placeholder);
if (self.hasClass("chan")) {
$("#chat-container").addClass("active");