Skip to content

Commit

Permalink
Link label to input
Browse files Browse the repository at this point in the history
  • Loading branch information
gurbindersingh committed Jul 12, 2024
1 parent 1160fef commit 4eafabe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function renderControls() {
</p>`;

return `<div class="field cell">
<label class="label">${label}</label>
<label class="label" for="${id}">${label}</label>
<input
value="${isPercentage ? (100 * value).toPrecision(3) : value}"
step="${isPercentage ? 0.1 : 1}"
Expand Down

0 comments on commit 4eafabe

Please sign in to comment.