mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +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">
|
<div id="setting-toggle-{settingContext}-{String(settingId)}" class="toggle-parent">
|
||||||
<button
|
<button
|
||||||
class="toggle-container"
|
class="toggle-container"
|
||||||
aria-pressed={isEnabled}
|
role="switch"
|
||||||
|
aria-checked={isEnabled}
|
||||||
on:click={() =>
|
on:click={() =>
|
||||||
updateSetting({
|
updateSetting({
|
||||||
[settingContext]: {
|
[settingContext]: {
|
||||||
|
|
Loading…
Reference in a new issue