Skip to content

Commit 8ce5ebd

Browse files
committed
Add label
1 parent 0c1630f commit 8ce5ebd

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/components/Product/ProductFilters.component.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,18 @@ const ProductFilters = ({
8585

8686
<div className="mb-8">
8787
<h3 className="font-semibold mb-4">PRIS</h3>
88-
<input
89-
type="range"
90-
min="0"
91-
max="1000"
92-
value={priceRange[1]}
93-
onChange={(e) =>
94-
setPriceRange([priceRange[0], parseInt(e.target.value)])
95-
}
96-
className="w-full"
97-
/>
88+
<label htmlFor="price-range" className="sr-only">Pris</label>
89+
<input
90+
id="price-range"
91+
type="range"
92+
min="0"
93+
max="1000"
94+
value={priceRange[1]}
95+
onChange={(e) =>
96+
setPriceRange([priceRange[0], parseInt(e.target.value)])
97+
}
98+
className="w-full"
99+
/>
98100
<div className="flex justify-between mt-2">
99101
<span>kr {priceRange[0]}</span>
100102
<span>kr {priceRange[1]}</span>

0 commit comments

Comments
 (0)