Merge pull request #17323 from woocommerce/fix/17288

Form row wide for email
This commit is contained in:
Claudio Sanches 2017-10-20 21:54:40 -02:00 committed by GitHub
commit f6c1c2d13e
1 changed files with 2 additions and 2 deletions

View File

@ -1149,7 +1149,7 @@ class WC_Countries {
'label' => __( 'Phone', 'woocommerce' ),
'required' => true,
'type' => 'tel',
'class' => array( 'form-row-first' ),
'class' => array( 'form-row-wide' ),
'validate' => array( 'phone' ),
'autocomplete' => 'tel',
'priority' => 100,
@ -1158,7 +1158,7 @@ class WC_Countries {
'label' => __( 'Email address', 'woocommerce' ),
'required' => true,
'type' => 'email',
'class' => array( 'form-row-last' ),
'class' => array( 'form-row-wide' ),
'validate' => array( 'email' ),
'autocomplete' => 'no' === get_option( 'woocommerce_registration_generate_username' ) ? 'email' : 'email username',
'priority' => 110,