Skip to content

Commit

Permalink
Forms: update width control to use more modern togglecontrol (#41130)
Browse files Browse the repository at this point in the history
* Forms: update width selector to use ToggleGroupControl

* changelog

* Fix onClick/onChange

Co-authored-by: Lena Morita <[email protected]>

* Simplyfy the code

* Update the label to match block editor

---------

Co-authored-by: Lena Morita <[email protected]>
Co-authored-by: Enej Bajgoric <[email protected]>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12819180321

Upstream-Ref: Automattic/jetpack@8f2dbb9
  • Loading branch information
enejb authored and matticbot committed Jan 16, 2025
1 parent 3b80ff1 commit 92fe054
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This is an alpha version! The changes listed here are not final.
### Changed
- Forms: rename "URL" field to "Website"
- Forms: settings, opt-in for default 40px size in gutenberg
- Forms: update width control to use more modern ToggleGroupControl
- Forms: use core icons for phone and email fields

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion dist/blocks/editor.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('jetpack-connection', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'a20bf3be0e8b9f1abd0f');
<?php return array('dependencies' => array('jetpack-connection', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '59e251dadf11c3eeb4e9');
2 changes: 1 addition & 1 deletion dist/blocks/editor.css

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions dist/blocks/editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/blocks/editor.rtl.css

Large diffs are not rendered by default.

0 comments on commit 92fe054

Please sign in to comment.