Skip to content

Commit

Permalink
Refactor ListItem component to display item quantity and name togethe…
Browse files Browse the repository at this point in the history
…r. Remove lablel, but keep aria label of checkbox.
  • Loading branch information
RossaMania committed Oct 3, 2024
1 parent b582e82 commit 5427158
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/ListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,11 @@ export function ListItemCheckBox({ item, listPath }: Props) {
onChange={handleCheckChange}
aria-checked={isChecked}
disabled={isChecked}
label={item.name}
/>
<ItemQuantityForm saveItemQuantity={editItemQuantity} item={item} /> x{" "}
{item.name}
{item.name}{" "}
<span>
{getUrgencyStatus(item)}

<Button onClick={() => deleteItemHandler()}>Delete Item</Button>
</span>
</div>
Expand Down

0 comments on commit 5427158

Please sign in to comment.