This PR can be summarized in the following changelog entry:
Add input validation to the Configuration Wizard social accounts
Relevant technical choices:
This PR leverages browsers constraint validation API for the Social Accounts URL fields in the Configuration Wizard, and basically does what https://github.com/Yoast/wordpress-seo/pull/12242 does for the Social Accounts settings page.
adjusts Step, Textfield, and Input components to have the necessary props / attributes
wraps the step fields in a <form> element when the new prop hasValidation is true (constraint validation needs a form element to work)
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
This PR leverages browsers constraint validation API for the Social Accounts URL fields in the Configuration Wizard, and basically does what https://github.com/Yoast/wordpress-seo/pull/12242 does for the Social Accounts settings page.
<form>
element when the new prophasValidation
is true (constraint validation needs a form element to work)Test instructions
This PR can be better tested in the plugin, please follow instructions from the related PR on wordpress-seo https://github.com/Yoast/wordpress-seo/pull/12242
UI changes
See https://github.com/Yoast/wordpress-seo/issues/12173 Fixes https://github.com/Yoast/wordpress-seo/issues/12373