Skip to content

Commit

Permalink
Merge pull request #4 from michelegiorgi/development
Browse files Browse the repository at this point in the history
release v1.1.1
  • Loading branch information
michelegiorgi authored Dec 29, 2020
2 parents 1a1b70d + 3d2b12b commit a52aedc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
8 changes: 4 additions & 4 deletions assets/scripts/public/core/uiux.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ export default {
$(el("field", true, " :input")).on("change", function() {
const $field = $(this)
const $parentEl = $field.closest(el("field"))
const val = $field.is(":checkbox") ? $field.is(":checked") : $field.val()
const val = $field.is(":checkbox") ? $parentEl.find(":checked").length : $field.val()
const name = $field.attr("name")
$parentEl.toggleClass(el("field_filled", false), val)
$(el("nav_list", true, ' li[data-name="'+name+'"]')).toggleClass("active", val)
hooks.event('FieldFill', { el: $parentEl[0] })
$parentEl.toggleClass(el("field_filled", false), Boolean(val))
$(el("nav_list", true, ' li[data-name="'+name+'"]')).toggleClass("active", Boolean(val))
if(val){ hooks.event('FieldFill', { el: $parentEl[0] }) }
})
},
keyboard() {
Expand Down
8 changes: 6 additions & 2 deletions assets/styles/public/templates/_side.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ body.body-formality--side {
}
&:after {
content: "";
position: fixed;
top: calc(50% - 1em);
position: absolute;
top: calc(50vh - 1em);
left: calc(50% - 1em);
display: block;
border: .2em solid var(--formality_bg);
Expand All @@ -59,6 +59,9 @@ body.body-formality--side {
width: 2em;
height: 2em;
animation: spin 0.6s linear infinite;
@include breakpoint(tablet) {
position: fixed;
}
}
.formality__wrap {
opacity: 0;
Expand Down Expand Up @@ -127,6 +130,7 @@ body.body-formality--side {
.formality__nav {
width: calc(100% + 7vw + 3em);
margin-left: -3em;
border-radius: 0 0 0 1.5em;
.formality__nav__list {
.formality__nav__section a {
padding-left: 3em;
Expand Down
4 changes: 2 additions & 2 deletions formality.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Plugin Name: Formality
* Plugin URI: https://formality.dev
* Description: Forms made simple (and cute). Designless, multistep, conversational, secure, all-in-one WordPress forms plugin.
* Version: 1.1
* Version: 1.1.1
* Author: Michele Giorgi
* Author URI: https://giorgi.io
* License: GPLv3
Expand Down Expand Up @@ -51,7 +51,7 @@
/**
* Currently plugin version.
*/
define( 'FORMALITY_VERSION', '1.1' );
define( 'FORMALITY_VERSION', '1.1.1' );

/**
* The code that runs during plugin activation.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Formality",
"version": "1.1.0",
"version": "1.1.1",
"author": "Michele Giorgi <[email protected]>",
"homepage": "https://giorgi.io",
"private": true,
Expand Down
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/michelegiorgi/
Tags: form, conversational, multistep, design form, gutenberg, block editor
Requires at least: 5.5
Tested up to: 5.6
Stable tag: 1.1
Stable tag: 1.1.1
Requires PHP: 7.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
Expand Down Expand Up @@ -61,6 +61,12 @@ You will find **Formality** menu in your WordPress admin screen.

== Changelog ==

= 1.1.1 =
Release Date: December 29th, 2020

* Fix filled input state bug
* Minor UI changes

= 1.1 =
Release Date: December 28th, 2020

Expand Down

0 comments on commit a52aedc

Please sign in to comment.