Skip to content

Commit 5381344

Browse files
committed
feat: updates stats display to use <output>
Replaces `` elements with `` elements for displaying input and output statistics. This improves accessibility and semantics by correctly associating the stats display with the corresponding SVG input/output elements.
1 parent b815fe3 commit 5381344

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ <h2 class="text-2xl font-semibold text-slate-900 dark:text-slate-100">Original S
179179
<span class="sr-only">Change background color</span>
180180
</button>
181181
</div>
182-
<div id="inputStats" class="p-3 bg-slate-50 dark:bg-slate-900 rounded-md text-sm text-slate-600 dark:text-slate-400"></div>
182+
<output id="inputStats" for="inputSvg" class="block p-3 bg-slate-50 dark:bg-slate-900 rounded-md text-sm text-slate-600 dark:text-slate-400"></output>
183183
</div>
184184
</div>
185185

@@ -215,7 +215,7 @@ <h2 class="text-2xl font-semibold text-slate-900 dark:text-slate-100">Merged SVG
215215
<span class="sr-only">Change background color</span>
216216
</button>
217217
</div>
218-
<div id="outputStats" class="p-3 bg-slate-50 dark:bg-slate-900 rounded-md text-sm text-slate-600 dark:text-slate-400"></div>
218+
<output id="outputStats" for="outputSvg" class="block p-3 bg-slate-50 dark:bg-slate-900 rounded-md text-sm text-slate-600 dark:text-slate-400"></output>
219219
</div>
220220
</div>
221221
</div>

0 commit comments

Comments
 (0)