Fix: Reset password form missing required indicator (#47229)

* Fix: Reset password form missing required indicator

* Added changelog

* Updated templae version

* Address feedback
This commit is contained in:
Naman Malhotra 2024-05-10 15:38:05 +05:30 committed by GitHub
parent 7556b7bffc
commit 01069666e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: enhancement
Fix: Reset password form missing required indicator

View File

@ -12,7 +12,7 @@
*
* @see https://woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 7.0.1
* @version 9.0.0
*/
defined( 'ABSPATH' ) || exit;
@ -25,8 +25,8 @@ do_action( 'woocommerce_before_lost_password_form' );
<p><?php echo apply_filters( 'woocommerce_lost_password_message', esc_html__( 'Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.', 'woocommerce' ) ); ?></p><?php // @codingStandardsIgnoreLine ?>
<p class="woocommerce-form-row woocommerce-form-row--first form-row form-row-first">
<label for="user_login"><?php esc_html_e( 'Username or email', 'woocommerce' ); ?></label>
<input class="woocommerce-Input woocommerce-Input--text input-text" type="text" name="user_login" id="user_login" autocomplete="username" />
<label for="user_login"><?php esc_html_e( 'Username or email', 'woocommerce' ); ?>&nbsp;<span class="required">*</span></label>
<input class="woocommerce-Input woocommerce-Input--text input-text" type="text" name="user_login" id="user_login" autocomplete="username" aria-required="true" />
</p>
<div class="clear"></div>