[wp-meta] [Making WordPress.org] #6173: Add ALT text field to upload form

Making WordPress.org noreply at wordpress.org
Fri Apr 14 04:14:51 UTC 2023


#6173: Add ALT text field to upload form
-----------------------------+---------------------
 Reporter:  alexstine        |       Owner:  (none)
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:
Component:  Photo Directory  |  Resolution:
 Keywords:  needs-patch      |
-----------------------------+---------------------

Comment (by alexstine):

 @coffee2code Can you find me a photo with ALT text? Happy to check but
 having a hard time finding one.

 Also, couple edits needed for the form.

 {{{
 <textarea name="post_content" id="ug_content" class="textarea"
 maxlength="350" required="required" aria-required="true"></textarea>
 }}}

 HTML5 required attribute is good enough, no need to have aria-required.
 Aria-required is only needed when HTML5 validation needs to be avoided.

 Can you add aria-describedby to associate the help text? Something like:

 {{{
 aria-describedby="ug_help_sr"
 }}}

 Then you simply add an ID to the description text with the value of aria-
 describedby.

 Related links:
 1. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required
 2. https://developer.mozilla.org/en-
 US/docs/Web/Accessibility/ARIA/Attributes/aria-required
 3. https://developer.mozilla.org/en-
 US/docs/Web/Accessibility/ARIA/Attributes/aria-describedby

 Thanks!

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/6173#comment:16>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list