By prudloff on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
Introduced in version:
Issue links:
Description:
Based on accessibility best practices, forms that use an asterisk (*) to indicate required fields must include a text description explaining the meaning of the asterisk. Previously, Drupal forms did not include this explanatory text, which could cause confusion for users, especially those using assistive technologies.
Drupal core forms now include a text description ("Required fields are marked with an asterisk") to clarify the meaning of the asterisk.
A new addAsteriskExplanation() method has been added to FormBuilderInterface. This method allows forms to automatically include the explanatory text when required fields are present.
Impacts:
Site builders, administrators, editors
Module developers