Commit 3fb908aa authored by Sindre Sorhus's avatar Sindre Sorhus

Switch from <span> to <label> for the "Mark all as complete" text

parent 67b2e541
...@@ -78,7 +78,7 @@ body { ...@@ -78,7 +78,7 @@ body {
border-bottom: none; border-bottom: none;
} }
#todo-list li.done span { #todo-list li.done label {
color: #777777; color: #777777;
text-decoration: line-through; text-decoration: line-through;
} }
...@@ -86,7 +86,7 @@ body { ...@@ -86,7 +86,7 @@ body {
#todo-list li .destroy { #todo-list li .destroy {
display: none; display: none;
position: absolute; position: absolute;
top: 16px; top: 20px;
right: 10px; right: 10px;
cursor: pointer; cursor: pointer;
width: 20px; width: 20px;
...@@ -119,7 +119,7 @@ body { ...@@ -119,7 +119,7 @@ body {
display: none; display: none;
} }
#todo-list li .view span { #todo-list li .view label {
word-break: break-word; word-break: break-word;
} }
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<li {{#if done}}class="done"{{/if}} data-id="{{id}}"> <li {{#if done}}class="done"{{/if}} data-id="{{id}}">
<div class="view"> <div class="view">
<input class="toggle" type="checkbox" {{#if done}}checked{{/if}}> <input class="toggle" type="checkbox" {{#if done}}checked{{/if}}>
<span>{{title}}</span> <label>{{title}}</label>
<a class="destroy"></a> <a class="destroy"></a>
</div> </div>
<input class="edit" type="text" value="{{title}}"> <input class="edit" type="text" value="{{title}}">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment