From e427ef90b1f2a929f9573be3db7c05da2018b347 Mon Sep 17 00:00:00 2001
From: Bubka <858858+Bubka@users.noreply.github.com>
Date: Mon, 9 Nov 2020 01:24:19 +0100
Subject: [PATCH] Add new FormToggle vue component
---
resources/js/components/FormToggle.vue | 55 ++++++++++++++++++++++++++
resources/js/components/index.js | 2 +
resources/sass/app.scss | 5 +++
3 files changed, 62 insertions(+)
create mode 100644 resources/js/components/FormToggle.vue
diff --git a/resources/js/components/FormToggle.vue b/resources/js/components/FormToggle.vue
new file mode 100644
index 00000000..39f54b09
--- /dev/null
+++ b/resources/js/components/FormToggle.vue
@@ -0,0 +1,55 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/js/components/index.js b/resources/js/components/index.js
index 3712f26f..68f69b4b 100644
--- a/resources/js/components/index.js
+++ b/resources/js/components/index.js
@@ -6,6 +6,7 @@ import FormWrapper from './FormWrapper'
import FormField from './FormField'
import FormSelect from './FormSelect'
import FormSwitch from './FormSwitch'
+import FormToggle from './FormToggle'
import FormCheckbox from './FormCheckbox'
import FormButtons from './FormButtons'
import VueFooter from './Footer'
@@ -20,6 +21,7 @@ import Kicker from './Kicker'
FormField,
FormSelect,
FormSwitch,
+ FormToggle,
FormCheckbox,
FormButtons,
VueFooter,
diff --git a/resources/sass/app.scss b/resources/sass/app.scss
index ecf717af..817e99fa 100644
--- a/resources/sass/app.scss
+++ b/resources/sass/app.scss
@@ -366,6 +366,11 @@ figure.no-icon {
color: hsl(0, 0%, 48%);
}
+.is-toggle.buttons,
+.is-toggle.buttons a.button {
+ margin-bottom: 0 !important;
+}
+
.control.has-icons-left .icon, .control.has-icons-right .icon {
color: inherit;
}