[wp-trac] [WordPress Trac] #55717: aria-hidden="true" attribute in comment template for visible text (required fields)

WordPress Trac noreply at wordpress.org
Tue May 17 19:58:41 UTC 2022

#55717: aria-hidden="true" attribute in comment template for visible text (required
 Reporter:  juliemoynat                |       Owner:  audrasjb
     Type:  defect (bug)               |      Status:  reviewing
 Priority:  normal                     |   Milestone:  6.1
Component:  Comments                   |     Version:  5.8
 Severity:  normal                     |  Resolution:
 Keywords:  has-patch required-fields  |     Focuses:  accessibility

Comment (by sabernhardt):

 Silencing only the (asterisk) symbol in both the labels and the message
 text would make sense in the original English. Required fields are marked:
 visually by the character or audibly by the required attribute.
 French translations]—plus Spanish and several other languages—add the word
 for ''with'' before the symbol. The extra word is probably necessary for
 at least one of the translations. If not, adding a period might help:
 `Required fields are marked.%s`

 (I removed the space from the suggestion above to consider using or
 allowing non-breaking spaces, which I wanted to do earlier but not enough
 to change the string.)

 Also, moving the character outside the label would break any theme that
 sets the label elements to `display: block`. A
 [https://wpdirectory.net/search/01G32D6N3AXEEDS7HP9C1S2AV2 directory
 search] found some (many of these CSS results do not affect the comments
 form, but the search does not seem to include any multiline matches and it
 does not include any label styles that define another property before

Ticket URL: <https://core.trac.wordpress.org/ticket/55717#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list