[wp-trac] [WordPress Trac] #54394: Add functions for required fields indicator and message

WordPress Trac noreply at wordpress.org
Mon Apr 11 21:57:50 UTC 2022


#54394: Add functions for required fields indicator and message
-------------------------------------------------+-------------------------
 Reporter:  sabernhardt                          |       Owner:  (none)
     Type:  feature request                      |      Status:  new
 Priority:  normal                               |   Milestone:  6.0
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch required-fields dev-       |     Focuses:
  feedback                                       |  accessibility
-------------------------------------------------+-------------------------

Comment (by sabernhardt):

 The spacing in [attachment:"53494.4.patch"] should be identical to the
 existing markup in these functions, but each message has the wrapper span
 and each indicator has `aria-hidden`.

 In `wp_media_insert_url_form`, the Alternative Text field has had a
 `required` (or `aria-required`) attribute since r8313, and the patch gives
 that label its missing indicator.

 I made the changes to `get_compat_media_markup`, though I do not know to
 test that function.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54394#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list