Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions Sprint-3/todo-list/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,20 @@ The items in the todo list are currently hard-coded into the HTML, refactor the
Each todo should have this HTML inside it:

```html
<span class="badge bg-primary rounded-pill">
<i class="fa fa-check" aria-hidden="true"></i>
<i class="fa fa-trash" aria-hidden="true"></i>
</span>
<button type="button" class="btn btn-success" aria-label="Complete">
<i class="fas fa-check" aria-hidden="true"></i>
</button>
<button type="button" class="btn btn-danger" aria-label="Delete">
<i class="fas trash" aria-hidden="true"></i>
</button>
```
The first `<button>` tag needs an event listener that applies a line-through the text of the todo (to visually indicate
that the todo item was completed). If the button is clicked again, the styling should be removed.

The first `<i>` tag needs an event listener that applies a line-through text-decoration styling to the text of the todo. It should remove the styling if it is clicked again.
The second `<button>` tag needs an event listener that deletes the parent `<li>` element from the `<ul>`.

The second `<i>` tag needs an event listener that deletes the parent `<li>` element from the `<ul>`.
The `<i>` tags are icons from Font Awesome. Using icons is optional, but it is a good way to visually indicate what the
button does.

## Advanced Challenge

Expand Down
Loading