Skip to content

Commit

Permalink
Make entire row of layer checkbox clickable [#34]
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed May 27, 2024
1 parent 6b004bd commit bbcaa04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/src/ThemeSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ function ThemeSelector({ interactiveLayers }) {
</div>
<ul className="dropdown__menu">
<li>
<div className="dropdown__link" ><input type="checkbox" checked={places} onClick={() => setPlaces(!places)}/>Places</div>
<label htmlFor="places" className="dropdown__link" ><input id="places" type="checkbox" checked={places} onClick={() => setPlaces(!places)}/>Places</label>
</li>
<li>
<div className="dropdown__link" ><input type="checkbox" checked={buildings} onClick={() => setBuildings(!buildings)}/>Buildings</div>
<label htmlFor="buildings" className="dropdown__link" ><input id="buildings" type="checkbox" checked={buildings} onClick={() => setBuildings(!buildings)}/>Buildings</label>
</li>
<li>
<div className="dropdown__link" ><input type="checkbox" checked={transportation} onClick={() => setTransportation(!transportation)}/>Transportation</div>
<label htmlFor="transportation" className="dropdown__link" ><input id="transportation" type="checkbox" checked={transportation} onClick={() => setTransportation(!transportation)}/>Transportation</label>
</li>
</ul>
</div>
Expand Down

0 comments on commit bbcaa04

Please sign in to comment.