Merge pull request #1247 from llune/patch-5

add label to form - accessibility issue
This commit is contained in:
Aurélien Tamisier 2018-12-02 13:56:16 +01:00 committed by GitHub
commit 5e0a898bb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,8 @@
<h2 class="window-title">{"Shaare a new link"|t}</h2> <h2 class="window-title">{"Shaare a new link"|t}</h2>
<form method="GET" action="#" name="addform" class="addform"> <form method="GET" action="#" name="addform" class="addform">
<div> <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>
<div> <div>
<input type="submit" value="{'Add link'|t}"> <input type="submit" value="{'Add link'|t}">