Skip to content

Commit 0c1630f

Browse files
committed
Label htmlfor
1 parent 0f0f3f0 commit 0c1630f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Product/ProductList.component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ const ProductList = ({ products, title }: ProductListProps) => {
4949
</h1>
5050

5151
<div className="flex flex-wrap items-center justify-center sm:justify-end gap-2 sm:gap-4">
52-
<label className="text-sm font-medium">Sortering:</label>
52+
<label htmlFor="sort-select" className="text-sm font-medium">Sortering:</label>
5353
<select
54+
id="sort-select"
5455
value={sortBy}
5556
onChange={(e) => setSortBy(e.target.value)}
5657
className="min-w-[140px] border rounded-md px-3 py-1.5 text-sm"

0 commit comments

Comments
 (0)