silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
721 stars 821 forks source link

PasswordField inside ConfirmedPasswordField isn't correctly marked as "required" #11098

Closed GuySartorelli closed 8 months ago

GuySartorelli commented 9 months ago

Affected Version

4.x, 5.x

Description

If you set the ConfirmedPasswordField as a required field, or if it's required due to its own validation logic (i.e. it can't be an empty value), the child fields aren't marked as required (i.e. they don't have the required="required" and aria-required="true" attributes).

These are required for accessibility and for any front-end validation developers choose to implement.

PRs

sabina-talipova commented 8 months ago

PR's merged. It will be automatically tagged in next CI round.

GuySartorelli commented 8 months ago

^ FYI @purplespider