web/SettingsToggle: change aria role to switch

This commit is contained in:
wukko 2024-07-07 22:45:35 +06:00
parent da1a11b5ce
commit 35a8628cc1
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -23,7 +23,8 @@
<div id="setting-toggle-{settingContext}-{String(settingId)}" class="toggle-parent">
<button
class="toggle-container"
aria-pressed={isEnabled}
role="switch"
aria-checked={isEnabled}
on:click={() =>
updateSetting({
[settingContext]: {