Skip to content

Commit

Permalink
UPD: captcha styles. Crocoblock/issues-tracker#14623
Browse files Browse the repository at this point in the history
  • Loading branch information
MjHead committed Feb 21, 2025
1 parent a8ddd19 commit 0fb9c0d
Show file tree
Hide file tree
Showing 31 changed files with 4,632 additions and 33 deletions.
2 changes: 1 addition & 1 deletion assets/build/editor/form.builder.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins'), 'version' => '299b9c91d2a648345e22');
<?php return array('dependencies' => array('react', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins'), 'version' => '0e71ef984202aade89d6');
4 changes: 2 additions & 2 deletions assets/build/editor/form.builder.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/build/editor/package.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '758780c8f19af763d964');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'c32e756fa00a0c565e20');
8 changes: 5 additions & 3 deletions assets/build/editor/package.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions assets/src/editor/editor-styles/components/builder-blocks.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,16 @@ body.post-type-jet-form-builder {
margin-bottom: 28px;
}

.block-editor-block-list__block[data-type="jet-forms/captcha-container"] {
.components-base-control {
margin-top: 10px;
.components-flex {
gap: 4px;
align-items: center;
}
}
}

.jet-form-builder__field-wrap.range-wrap fieldset.components-input-control__backdrop {
border: none;
}
Expand Down
15 changes: 15 additions & 0 deletions assets/src/editor/editor-styles/components/toolbar.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,19 @@
margin-bottom: unset;
}
}
}

.jfb-variations-toolbar-toggle {
.components-base-control__field {
margin: 0;
}
.components-toggle-group-control {
border-radius: 0;
border-top: none;
border-left: none;
border-bottom: none;
.components-toggle-group-control-option-base {
height: 42px;
}
}
}
4 changes: 2 additions & 2 deletions assets/src/package/blocks/components/ToggleGroupVariations.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function ToggleGroupVariationsBase( { value } ) {
return null;
}

return <ToggleGroupControl
return <div className="jfb-variations-toolbar-toggle"><ToggleGroupControl
hideLabelFromVision
onChange={ varName => setAttributes( {
...variations.find(
Expand All @@ -93,7 +93,7 @@ function ToggleGroupVariationsBase( { value } ) {
components,
cloneElement,
) }
</ToggleGroupControl>;
</ToggleGroupControl></div>;
}

function ToggleGroupVariations( props ) {
Expand Down
2 changes: 1 addition & 1 deletion modules/captcha/assets/build/editor.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react'), 'version' => '40824e1bb70dc2c7ef6f');
<?php return array('dependencies' => array('react'), 'version' => '3ee16b46632e61c4ae59');
684 changes: 683 additions & 1 deletion modules/captcha/assets/build/editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion modules/captcha/assets/build/editor.package.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-i18n'), 'version' => 'd036082aab181bc56cc8');
<?php return array('dependencies' => array('react', 'wp-i18n'), 'version' => 'e0a606571c562a920d4c');
Loading

0 comments on commit 0fb9c0d

Please sign in to comment.