Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
2f50926
Add base form field blocks
aaronrobertshaw Mar 12, 2025
89d751a
changelog
aaronrobertshaw Apr 1, 2025
720e36a
Fix issues with style syncing hook:
aaronrobertshaw Apr 7, 2025
13a1796
Prevent style syncing when blocks are reused in previews
aaronrobertshaw Apr 7, 2025
ee2cd39
Ensure label is editable after being emptied and placeholder shows
aaronrobertshaw Apr 8, 2025
6b4989f
Opt out of block gap spacing for Options block
aaronrobertshaw Apr 14, 2025
4c1c201
Migrate form field blocks to use new base blocks
aaronrobertshaw Apr 3, 2025
893476f
changelog
aaronrobertshaw Apr 1, 2025
1e25520
Fix CSS linting issues
aaronrobertshaw Apr 7, 2025
946f3d2
Make select dropdown field's edit component more robust
aaronrobertshaw Apr 7, 2025
d7fb4ff
First pass at updating form variations
aaronrobertshaw Apr 9, 2025
48e220a
Quick clean up of form variations
aaronrobertshaw Apr 9, 2025
7f2bb7b
Pass required block toolbar control through to Option block for check…
aaronrobertshaw Apr 9, 2025
3273612
Clean up form field and inner block attributes
aaronrobertshaw Apr 9, 2025
e1fde32
Remove lodash dependency from dropdown field edit component
aaronrobertshaw Apr 9, 2025
e73c977
Remove remaining lodash uses in new or updated form blocks
aaronrobertshaw Apr 9, 2025
b7bbb8b
Remove TODO as Dropdown fields didn't use option styles
aaronrobertshaw Apr 9, 2025
a3c7089
Fix default styling for Consent field option label
aaronrobertshaw Apr 9, 2025
cfe10fe
Clean up unrequired TODO item
aaronrobertshaw Apr 9, 2025
3650db1
Clean some more TODOs
aaronrobertshaw Apr 9, 2025
7b88e0d
Restore empty string defaults for input, option, and label blocks
aaronrobertshaw Apr 10, 2025
9a99871
Revert use sync style hook to previous version retaining undo stack fix
aaronrobertshaw Apr 10, 2025
24335d3
Fix typo
aaronrobertshaw Apr 10, 2025
f9758b8
Update form field style syncing (#43004)
talldan Apr 11, 2025
8c444ba
Fix linting error in editor.scss
aaronrobertshaw Apr 10, 2025
cc4d6d9
Attempt to fix warnings about PhanUndeclaredTypeParameter for WP_Block
andrewserong Apr 11, 2025
abda304
Fix linting issue in class-contact-form.php
andrewserong Apr 11, 2025
5137ade
Forms: Prevent errors when synced attribute context is not available …
aaronrobertshaw Apr 11, 2025
643e3ae
For html_entity_decode, use ENT_COMPAT since we only care about doubl…
andrewserong Apr 11, 2025
945b412
Remove is_array and empty check as we now will always have at least o…
andrewserong Apr 11, 2025
d1709da
Add transforms for new inner blocks based fields
aaronrobertshaw Apr 11, 2025
cfaa533
Clean up standalone checkbox inner blocks template
aaronrobertshaw Apr 11, 2025
9be3a6c
Clean up dropdown field inner blocks template
aaronrobertshaw Apr 11, 2025
fb4df07
Add example definitions for field block types
aaronrobertshaw Apr 11, 2025
6fdcdbb
Allow default checked status for standalone option fields
aaronrobertshaw Apr 11, 2025
78f6dab
Fix choice field deprecation edge case
aaronrobertshaw Apr 14, 2025
3b5d05c
Fix handling of required and width attributes for Textarea field.
aaronrobertshaw Apr 14, 2025
6855074
Fix label block's placeholder fallbacks
aaronrobertshaw Apr 14, 2025
3bf9d51
Fix form undo redo issues (#43036)
talldan Apr 14, 2025
a1461c4
Forms: Add PHP unit tests for Migrate form fields to inner blocks JET…
ramonjd Apr 14, 2025
2a1dec6
Clean up TODO as the important style for Outlined form style can not …
aaronrobertshaw Apr 14, 2025
87c5853
Remove extraneous hook dependency
aaronrobertshaw Apr 14, 2025
3a03210
Remove useFormWrapper audit TODO - all fields use it
aaronrobertshaw Apr 14, 2025
bb85e88
Remove TODOs already captured by issues
aaronrobertshaw Apr 14, 2025
5929d39
Remove unused ids from consent, checkbox, single choice and multiple …
talldan Apr 14, 2025
911557c
Fix saving and display of dropdown field placeholder
aaronrobertshaw Apr 15, 2025
e20eae6
Fix dropdown field placeholder default
aaronrobertshaw Apr 15, 2025
487401b
Fix style linting error
aaronrobertshaw Apr 15, 2025
1c504e0
Form inner blocks: supplement existing PHP unit tests (#43076)
ramonjd Apr 15, 2025
c3f0fe1
Allow default checked status for standalone option fields (#43077)
aaronrobertshaw Apr 15, 2025
13c10fb
Fix date picker field incorrect classname (#43059)
talldan Apr 15, 2025
5de8bf0
Revert "Remove deprecated covers annotations in line with #42902"
aaronrobertshaw Apr 15, 2025
1650c9f
Forms: move @covers to class level in PHP unit tests (#43081)
ramonjd Apr 15, 2025
b2edc3c
Fix field block examples (#43096)
talldan Apr 16, 2025
e62c18f
Forms: Fix display of label and option fallback values in transform p…
aaronrobertshaw Apr 17, 2025
8526fb9
Add fallback styles for dropdown block when css vars are not populate…
talldan Apr 17, 2025
74cd686
Add missed cleaned up label fallback handling
aaronrobertshaw Apr 17, 2025
134f299
Fix rendering of legend as a label
aaronrobertshaw Apr 22, 2025
041f81b
Remove redundant array check to make linter happy.
aaronrobertshaw Apr 22, 2025
882745e
Clean up dead code in shared JetpackFieldControls
aaronrobertshaw Apr 23, 2025
86a5144
Try to fix metadata in doc comments warning
andrewserong Apr 24, 2025
9d8916b
Try updating PHP test attributes again, to hopefully please the linter
andrewserong Apr 24, 2025
798054d
Forms: ensure custom CSS in global styles applies correctly to checkb…
ramonjd Apr 24, 2025
95b6b04
Add icons for input, label, option, and options blocks (#43270)
andrewserong Apr 28, 2025
d01f51b
Form Global Styles: Update CSS specificity to 0-1-0 for default edito…
talldan Apr 28, 2025
b9cd0a9
Forms: only apply `wp-` and `is-style-` classes to fields of new inne…
ramonjd Apr 29, 2025
38c4b52
Fix missing checkmark for single choice options on frontend (#43301)
talldan May 1, 2025
95d29a2
Forms: Fix CSS specificity for compatibility with global styles on th…
talldan May 5, 2025
31f493c
Forms: remove color gradients block supports (#43427)
ramonjd May 12, 2025
c7683ce
[WIP] Forms: migrate Outlined form style for inner block based fields…
ramonjd May 16, 2025
0010689
Add esc_attr calls to render_radio_field (#43488)
andrewserong May 16, 2025
89c81a3
Reinstate default padding where there's a border. Add option chaining…
ramonjd May 16, 2025
607d9fb
Use correct block name in get_ouline_styles (#43489)
talldan May 19, 2025
6cf8527
Forms: standardize animated variation style paddings (#43469)
ramonjd May 20, 2025
22ce6e6
Forms: Fix block instance border color not overriding global styles b…
talldan May 21, 2025
1350e73
Revert input + option syncing. Bad!
ramonjd May 21, 2025
74db066
Forms: Fix typography input styles applying to labels when outline st…
talldan May 21, 2025
eea7dcc
For classic themes, do not destructure theme config objects that don'…
ramonjd May 22, 2025
16be243
Forms: Fix custom classnames support in inner blocks migration (#43564)
andrewserong May 23, 2025
6b08bd2
Forms: fix custom class handling in contact form plugin (#43587)
ramonjd May 26, 2025
8828579
Forms: Fix outline style label font size (#43590)
talldan May 26, 2025
21ff332
Forms: fix inconsistent weights in outline style and terms labels (#4…
ramonjd May 26, 2025
5fa4875
Forms: Fix animated style label font scaling (#43615)
talldan May 27, 2025
5df3eef
Forms Fix animated label centered positioning (#43635)
talldan May 27, 2025
c299f44
Forms: Remove options text color support (#43612)
talldan May 28, 2025
9b94a20
Forms: options block layout tweaks (#43531)
ramonjd May 28, 2025
dff59f9
Forms: update padding for jetpack options in contact form to conform …
ramonjd May 28, 2025
734a25d
Fix date field label suffix font size for outlined/animated styles
talldan May 28, 2025
1d7d128
Fix option input color not inherited in editor
talldan May 28, 2025
09b5c9e
Forms: Update border radius and width handling in deprecateFieldStyle…
ramonjd May 29, 2025
693b375
Remove duplicated styles
ramonjd May 29, 2025
e879d4f
Form: fix default fallbacks for unmigrated forms (#43676)
ramonjd May 30, 2025
748c7b9
Forms: tame select arrow positioning (#43674)
ramonjd May 30, 2025
62fb982
Ensure that animated labels sit above active input elements.
ramonjd Jun 2, 2025
bbf6c96
Forms: account for missing placeholder when transforming input fields…
ramonjd Jun 3, 2025
690c999
Update contact form styles to prevent color overrides by global style…
ramonjd Jun 3, 2025
d4880a3
Forms: Add PHP unit tests for Migrate form fields to inner blocks JET…
ramonjd Apr 14, 2025
40d54a9
Fix rendering of legend as a label
aaronrobertshaw Apr 22, 2025
2419e51
Forms: Fix outline style label font size (#43590)
talldan May 26, 2025
5012367
Add dropzone block for file uploads
edanzer Apr 16, 2025
0066d92
unset the flex property so that blocks works more as expected.
enejb May 20, 2025
bcdce76
Make the form more accessibe.
enejb May 23, 2025
6f4d925
Add is-layout-constrained class so that things center more as expected.
enejb May 23, 2025
2889317
Add locking and prevent any special blocks from being added
enejb May 27, 2025
40c5c17
Use the constrained layout
enejb May 27, 2025
58d5d71
Move to the correct folder
enejb May 28, 2025
6fb44fa
limit the blocks
enejb May 29, 2025
dcdc84c
Make the animated and outline styles work
enejb May 29, 2025
d0966f6
Remove templateLock
enejb May 29, 2025
4026240
Default center blocks inside the dropzone but allow content justifica…
enejb May 30, 2025
ad89011
Fixes
enejb May 30, 2025
4d779d3
minro fix
enejb May 30, 2025
5030ccb
Improved focus management
enejb May 30, 2025
ddd4b84
Add keyboard events for the remove button
enejb May 30, 2025
f97ba23
Remove link from the dropzone
simison Jun 2, 2025
de18bc8
Update the dropzone icon.
enejb Jun 2, 2025
7873f8c
Add nicer file upload preview with icons
enejb Jun 2, 2025
d510076
Update the icon
enejb Jun 3, 2025
85c08c7
Revert test files. Since we didn't add any new tests.
enejb Jun 3, 2025
a336b95
Make it work nice for dark themes and icon
enejb Jun 3, 2025
48ebdfc
Update the to nicer styles across themes
enejb Jun 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Adding block supports checks for new inner blocks, and radio field unit test coverage
4 changes: 4 additions & 0 deletions projects/packages/forms/changelog/add-new-form-field-blocks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Add label, input, option, and options blocks for improving form fields
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: added

Added tests for migration of form fields to inner blocks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Migrate form field blocks to use new inner label, input, option, and options blocks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Hoisting `@cover` annotation in PHP unit tests to class level.
Loading