-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
74 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 12 additions & 14 deletions
26
test/integration/fixtures/blocks/core__form.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
<!-- wp:form {"formId":"the-form-id"} --> | ||
<form class="wp-block-form"><!-- wp:input-field {"label":"Name - required, inline label","inlineLabel":true,"required":true} --> | ||
<label class="wp-block-input-field-label is-label-inline"><div class="wp-block-input-field-label__content">Name - required, inline label</div><input class="wp-block-input-field" type="text" name="Name - required, inline label" required aria-required="true"/></label> | ||
<!-- wp:form --> | ||
<form> | ||
<!-- wp:input-field {"label":"Name","required":true} --> | ||
<label class="wp-block-input-field-label"><div class="wp-block-input-field-label__content">Name</div><input class="wp-block-input-field" type="text" name="Name" required="" aria-required="true"></label> | ||
<!-- /wp:input-field --> | ||
|
||
<!-- wp:input-field {"type":"checkbox","label":"Checkbox - inline label","inlineLabel":true,"required":true} --> | ||
<label class="wp-block-input-field-label is-label-inline"><div class="wp-block-input-field-label__content">Checkbox - inline label</div><input class="wp-block-input-field" type="checkbox" name="Checkbox - inline label" required aria-required="true"/></label> | ||
<!-- wp:input-field {"type":"email","label":"Email","required":true} --> | ||
<label class="wp-block-input-field-label"><div class="wp-block-input-field-label__content">Email</div><input class="wp-block-input-field" type="email" name="Email" required="" aria-required="true"></label> | ||
<!-- /wp:input-field --> | ||
|
||
<!-- wp:input-field {"type":"email","label":"Email - required","required":true} --> | ||
<label class="wp-block-input-field-label"><div class="wp-block-input-field-label__content">Email - required</div><input class="wp-block-input-field" type="email" name="Email - required" required aria-required="true"/></label> | ||
<!-- wp:input-field {"type":"url","label":"Website"} --> | ||
<label class="wp-block-input-field-label"><div class="wp-block-input-field-label__content">Website</div><input class="wp-block-input-field" type="url" name="Website" aria-required="false"></label> | ||
<!-- /wp:input-field --> | ||
|
||
<!-- wp:input-field {"type":"textarea","label":"Textarea input"} --> | ||
<label class="wp-block-input-field-label"><div class="wp-block-input-field-label__content">Textarea input</div><textarea class="wp-block-input-field" name="Textarea input" aria-required="false"></textarea></label> | ||
<!-- wp:input-field {"type":"textarea","label":"Comment","required":true} --> | ||
<label class="wp-block-input-field-label"><div class="wp-block-input-field-label__content">Comment</div><textarea class="wp-block-input-field" name="Comment" required="" aria-required="true"></textarea></label> | ||
<!-- /wp:input-field --> | ||
|
||
<!-- wp:input-field {"type":"submit","label":"Submit"} --> | ||
<div class="wp-block-buttons"><div class="wp-block-button"><button class="wp-block-button__link wp-element-button">Submit</button></div></div> | ||
<!-- /wp:input-field --></form> | ||
<!-- /wp:input-field --> | ||
</form> | ||
<!-- /wp:form --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,3 @@ | ||
<!-- wp:input-field {"label":"Name - required, inline label","inlineLabel":true,"required":true} --> | ||
<label class="wp-block-input-field-label is-label-inline"><div class="wp-block-input-field-label__content">Name - required, inline label</div><input class="wp-block-input-field" type="text" name="Name - required, inline label" required aria-required="true"/></label> | ||
<!-- /wp:input-field --> | ||
|
||
<!-- wp:input-field {"type":"checkbox","label":"Checkbox - inline label","inlineLabel":true,"required":true} --> | ||
<label class="wp-block-input-field-label is-label-inline"><div class="wp-block-input-field-label__content">Checkbox - inline label</div><input class="wp-block-input-field" type="checkbox" name="Checkbox - inline label" required aria-required="true"/></label> | ||
<!-- /wp:input-field --> | ||
|
||
<!-- wp:input-field {"type":"email","label":"Email - required","required":true} --> | ||
<label class="wp-block-input-field-label"><div class="wp-block-input-field-label__content">Email - required</div><input class="wp-block-input-field" type="email" name="Email - required" required aria-required="true"/></label> | ||
<!-- /wp:input-field --> | ||
|
||
<!-- wp:input-field {"type":"textarea","label":"Textarea input"} --> | ||
<label class="wp-block-input-field-label"><div class="wp-block-input-field-label__content">Textarea input</div><textarea class="wp-block-input-field" name="Textarea input" aria-required="false"></textarea></label> | ||
<!-- /wp:input-field --> | ||
|
||
<!-- wp:input-field {"type":"submit","label":"Submit"} --> | ||
<div class="wp-block-buttons"><div class="wp-block-button"><button class="wp-block-button__link wp-element-button">Submit</button></div></div> | ||
<!-- wp:input-field {"label":"Name","required":true} --> | ||
<label class="wp-block-input-field-label"><div class="wp-block-input-field-label__content">Name</div><input class="wp-block-input-field" type="text" name="Name" required aria-required="true"/></label> | ||
<!-- /wp:input-field --> |
Oops, something went wrong.