mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Comments: Remove aria-hidden="true" attribute for visible text in comment template.
This changeset removes `aria-hidden="true"` attribute used for required fields in comments template, for better accessibility. It removes the attribute from both `wp_required_field_indicator()` and `wp_required_field_message()` patterns. Follow-up to [53888]. Props juliemoynat, audrasjb, joedolson, sabernhardt, afercia, costdev. Fixes #55717. git-svn-id: https://develop.svn.wordpress.org/trunk@54136 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4fc5f0e580
commit
de06111d65
@ -5024,7 +5024,7 @@ function __checked_selected_helper( $helper, $current, $echo, $type ) { // phpcs
|
||||
function wp_required_field_indicator() {
|
||||
/* translators: Character to identify required form fields. */
|
||||
$glyph = __( '*' );
|
||||
$indicator = '<span class="required" aria-hidden="true">' . esc_html( $glyph ) . '</span>';
|
||||
$indicator = '<span class="required">' . esc_html( $glyph ) . '</span>';
|
||||
|
||||
return $indicator;
|
||||
}
|
||||
@ -5038,7 +5038,7 @@ function wp_required_field_indicator() {
|
||||
*/
|
||||
function wp_required_field_message() {
|
||||
$message = sprintf(
|
||||
'<span class="required-field-message" aria-hidden="true">%s</span>',
|
||||
'<span class="required-field-message">%s</span>',
|
||||
/* translators: %s: Asterisk symbol (*). */
|
||||
sprintf( __( 'Required fields are marked %s' ), wp_required_field_indicator() )
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user