Skip to content

Commit 8a48207

Browse files
committed
feat (a11y): improvments
1 parent 32c6816 commit 8a48207

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

index.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
]
6161
}
6262
</script>
63-
63+
6464
<!-- FAQ Schema for Rich Snippets -->
6565
<script type="application/ld+json">
6666
{
@@ -136,11 +136,12 @@ <h1 class="text-4xl font-bold text-primary dark:text-indigo-400 mb-2">SVG Path M
136136
<div class="flex flex-col gap-4">
137137
<div class="flex justify-between items-center">
138138
<h2 class="text-2xl font-semibold text-slate-900 dark:text-slate-100">Original SVG</h2>
139-
<button type="button" id="clearBtn" class="btn btn-secondary" aria-label="Clear the input textarea">
139+
<button type="button" id="clearBtn" class="btn btn-secondary">
140140
<svg aria-hidden="true" focusable="false" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
141141
<path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"/>
142142
<path fill-rule="evenodd" d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"/>
143143
</svg>
144+
<span class="sr-only">Clear the input textarea</span>
144145
</button>
145146
</div>
146147
<label for="inputSvg" class="sr-only">Original SVG</label>
@@ -155,10 +156,11 @@ <h2 class="text-2xl font-semibold text-slate-900 dark:text-slate-100">Original S
155156
<div id="inputPreview" class="flex-1 flex items-center justify-center min-h-[200px] preview-checkerboard rounded-md overflow-hidden" data-bg="transparent">
156157
<div class="text-slate-500 dark:text-slate-400 italic text-center p-8">Preview will appear here</div>
157158
</div>
158-
<button type="button" id="inputBgToggle" class="absolute top-2 right-2 p-2 rounded-md bg-white/80 dark:bg-slate-900/80 hover:bg-white dark:hover:bg-slate-900 border border-slate-300 dark:border-slate-600 transition-colors shadow-sm" aria-label="Change background">
159+
<button type="button" id="inputBgToggle" class="absolute top-2 right-2 p-2 rounded-md bg-white/80 dark:bg-slate-900/80 hover:bg-white dark:hover:bg-slate-900 border border-slate-300 dark:border-slate-600 transition-colors shadow-sm">
159160
<svg aria-hidden="true" focusable="false" class="w-4 h-4 text-slate-700 dark:text-slate-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
160161
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"></path>
161162
</svg>
163+
<span class="sr-only">Change background color</span>
162164
</button>
163165
</div>
164166
<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>
@@ -190,10 +192,11 @@ <h2 class="text-2xl font-semibold text-slate-900 dark:text-slate-100">Merged SVG
190192
<div id="outputPreview" class="flex-1 flex items-center justify-center min-h-[200px] preview-checkerboard rounded-md overflow-hidden" data-bg="transparent">
191193
<div class="text-slate-500 dark:text-slate-400 italic text-center p-8">Preview will appear here</div>
192194
</div>
193-
<button type="button" id="outputBgToggle" class="absolute top-2 right-2 p-2 rounded-md bg-white/80 dark:bg-slate-900/80 hover:bg-white dark:hover:bg-slate-900 border border-slate-300 dark:border-slate-600 transition-colors shadow-sm" aria-label="Change background">
195+
<button type="button" id="outputBgToggle" class="absolute top-2 right-2 p-2 rounded-md bg-white/80 dark:bg-slate-900/80 hover:bg-white dark:hover:bg-slate-900 border border-slate-300 dark:border-slate-600 transition-colors shadow-sm">
194196
<svg aria-hidden="true" focusable="false" class="w-4 h-4 text-slate-700 dark:text-slate-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
195197
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"></path>
196198
</svg>
199+
<span class="sr-only">Change background color</span>
197200
</button>
198201
</div>
199202
<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>

0 commit comments

Comments
 (0)