Summary
Users might make a mistake when entering an item, or may decide they won’t be buying a certain item again in the future. Allowing them to delete list items will help them keep their lists tidy.
Acceptance criteria
Notes:
- Activating the “Delete” button should show a confirmation dialog. We want to give users a chance to confirm “destructive” actions.
- It might be tempting to create your own modal dialog component to handle confirmation, but modals are fraught with accessibility concerns, so consider using a simple JavaScript confirm dialog.