UX: Introduce toggle-switch UI for plugins (#22910)

This commit makes some visual tweaks to the admin panel plugin list, and introduces functional 'toggle switches' for admins to enable/disable plugins more easily.

Co-authored-by: Jordan Vidrine <jordan@jordanvidrine.com>
This commit is contained in:
David Taylor
2023-08-03 15:19:33 +01:00
committed by GitHub
parent 2b04301c19
commit 45ae9d9bab
5 changed files with 76 additions and 29 deletions

View File

@ -162,4 +162,14 @@
(fn (mut @dummy.toggleSwitchState) (not @dummy.toggleSwitchState))
}}
/>
<DToggleSwitch
disabled="true"
@state={{true}}
title="Disabled with state=true"
/>
<DToggleSwitch
disabled="true"
@state={{false}}
title="Disabled with state=false"
/>
</StyleguideExample>

View File

@ -195,6 +195,10 @@
margin-right: 0.5em;
margin-bottom: 0.5em;
}
.d-toggle-switch {
display: inline-block;
}
}
.icons-examples,