Skip to content

Commit

Permalink
Change autofocus order on the main page
Browse files Browse the repository at this point in the history
  • Loading branch information
thesephist committed Nov 2, 2018
1 parent 66d1dc2 commit 4f5754a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions static/css/main.css
Expand Up @@ -106,8 +106,9 @@ input[type="submit"] {
transition: opacity .2s;
}

input[type="submit"]:hover {
opacity: .8;
input[type="submit"]:hover,
input[type="submit"]:focus {
opacity: .7;
}

.hidden {
Expand Down
10 changes: 5 additions & 5 deletions static/index.html
Expand Up @@ -11,30 +11,30 @@

<body>
<main>
<h1><a href="/">linus.zone</a></h1>
<h1><a href="/" tabindex="0">linus.zone</a></h1>

<form action="/new" method="post">
<div class="header">
<div class="inputGroup">
<label for="id">ID</label>
<input type="text" name="id" id="id" />
<input type="text" name="id" id="id" tabindex="1" autofocus/>
</div>
<div class="inputGroup submit">
<label class="hidden">Add Record</label>
<input type="submit" value="Add Record" />
<input type="submit" value="Add Record" tabindex="2"/>
</div>
</div>

<div class="inputGroup">
<label for="content_uri">URI</label>
<input type="text" name="content_uri" id="content_uri" />
<input type="text" name="content_uri" id="content_uri" tabindex="1"/>
</div>

<div class="orMark">or</div>

<div class="inputGroup">
<label for="content_note">Note (supports Markdown)</label>
<textarea name="content_note" id="content_note" autofocus></textarea>
<textarea name="content_note" id="content_note" tabindex="1"></textarea>
</div>

</form>
Expand Down

0 comments on commit 4f5754a

Please sign in to comment.