Forms with required fields marked by asterisk do not have text explaining what the asterisk means

Created on 4 March 2019, about 5 years ago
Updated 30 October 2023, 7 months ago

Some context: this issue was initially created for the Entity Embed module, reporting two accessibility problems. It was then converted to a core issue, and retitled "Accessibility issues with modal dialogs". The first problem was dialog related, but already has an issue created and a patch awaiting review (at the time this IS is being written). 🐛 Ajax replace does not refocus element if inside a dialog Fixed

The second issue is not specific to dialogs, so the issue has been re-titled and IS updated to remove the blame from dialogs (they're having a difficult enough time as-is).
This is what was initially reported:

Within the “Embed content” window, instruction is not provided for the required field i.e., “Display as *” drop down marked with an asterisk. In this instance, a text description such as “Required fields are marked with an asterisk *” is expected to be provided within the page.

Expected result: A text description such as “Required fields are marked with an asterisk *” is expected to be provided for the fields marked with asterisks within the page.

Reference: Section 508, 3.3.2 Labels or Instructions and 1.3.1 – Information and Relationships.

For more information, visit:
http://www.w3.org/TR/UNDERSTANDING-WCAG20/minimize-error-cues.html
http://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-p...

Based on The W3 spec, forms that use an asterisk to indicate required fields should include a text description explaining what that asterisk means. This lack of asterisk-describing text is not specific to Entity Embed or dialogs. For example, this text is not present on node/add/page, a form that certainly has required fields indicated by an asterisk on their label. This criteria can also met with text describing the asterisk at the beginning of the form, or by adding "(required)" to the label. Deque also has a concise description of this criteria and how it can be met.


1. (addressed in 🐛 Ajax replace does not refocus element if inside a dialog Fixed )
2. Text description is expected for required fields marked with an asterisk *.

1.


(addressed in 🐛 Ajax replace does not refocus element if inside a dialog Fixed )

2.


🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Form 

Last updated about 4 hours ago

Created by

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024