web/SettingsToggle: change aria role to switch
This commit is contained in:
parent
da1a11b5ce
commit
35a8628cc1
1 changed files with 2 additions and 1 deletions
|
@ -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]: {
|
||||
|
|
Loading…
Reference in a new issue