Merge pull request #21193 from woocommerce/add/21182

Add hidden, screen-reader label on address line 2 input on checkout
This commit is contained in:
Claudiu Lodromanean 2018-09-06 10:32:36 -07:00 committed by GitHub
commit d6cbf78825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -662,6 +662,8 @@ class WC_Countries {
'priority' => 50, 'priority' => 50,
), ),
'address_2' => array( 'address_2' => array(
'label' => __( 'Apartment, suite, or unit.', 'woocommerce' ),
'label_class' => 'screen-reader-text',
'placeholder' => esc_attr( $address_2_placeholder ), 'placeholder' => esc_attr( $address_2_placeholder ),
'class' => array( 'form-row-wide', 'address-field' ), 'class' => array( 'form-row-wide', 'address-field' ),
'autocomplete' => 'address-line2', 'autocomplete' => 'address-line2',