mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 18:46:09 +00:00
web/SettingsToggle: change aria role to switch
This commit is contained in:
parent
da1a11b5ce
commit
35a8628cc1
|
@ -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