]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
add label to form - accessibility issue 1247/head
authorLuce Carević <lcarevic@access42.net>
Fri, 30 Nov 2018 19:39:13 +0000 (20:39 +0100)
committerGitHub <noreply@github.com>
Fri, 30 Nov 2018 19:39:13 +0000 (20:39 +0100)
Don't use placeholder instead of label for form input.

tpl/default/addlink.html

index 2f956e061bc30534a1f15cbaa2087e2a51da9c3d..55864a023947c201ad09fd32754452f45bb02c6d 100644 (file)
@@ -11,7 +11,8 @@
     <h2 class="window-title">{"Shaare a new link"|t}</h2>
     <form method="GET" action="#" name="addform" class="addform">
       <div>
-        <input type="text" name="post" placeholder="{'URL or leave empty to post a note'|t}" class="autofocus">
+        <label for="shaare">{'URL or leave empty to post a note'|t}</label>
+        <input type="text" name="post" id="shaare" class="autofocus">
       </div>
       <div>
         <input type="submit" value="{'Add link'|t}">