Re-order elements and add tabindex

This commit is contained in:
Mike Jolley 2019-03-05 14:22:59 +00:00
parent 2c2891c17a
commit a5e72cfc02
1 changed files with 13 additions and 13 deletions

View File

@ -1631,6 +1631,18 @@ class WC_Admin_Setup_Wizard {
<p><?php echo esc_html( $item_info['name'] ); ?></p> <p><?php echo esc_html( $item_info['name'] ); ?></p>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="wc-wizard-service-enable">
<span class="wc-wizard-service-toggle <?php echo esc_attr( $should_enable_toggle ? '' : 'disabled' ); ?>" tabindex="0">
<input
id="wc-wizard-service-<?php echo esc_attr( $item_id ); ?>"
type="checkbox"
name="wc-wizard-service-<?php echo esc_attr( $item_id ); ?>-enabled"
value="yes" <?php checked( $should_enable_toggle ); ?>
data-plugins="<?php echo wc_esc_json( wp_json_encode( $plugins ) ); ?>"
/>
<label for="wc-wizard-service-<?php echo esc_attr( $item_id ); ?>">
</span>
</div>
<div class="wc-wizard-service-description"> <div class="wc-wizard-service-description">
<?php echo wp_kses_post( wpautop( $item_info['description'] ) ); ?> <?php echo wp_kses_post( wpautop( $item_info['description'] ) ); ?>
<?php if ( ! empty( $item_info['settings'] ) ) : ?> <?php if ( ! empty( $item_info['settings'] ) ) : ?>
@ -1680,18 +1692,6 @@ class WC_Admin_Setup_Wizard {
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="wc-wizard-service-enable">
<span class="wc-wizard-service-toggle <?php echo esc_attr( $should_enable_toggle ? '' : 'disabled' ); ?>">
<input
id="wc-wizard-service-<?php echo esc_attr( $item_id ); ?>"
type="checkbox"
name="wc-wizard-service-<?php echo esc_attr( $item_id ); ?>-enabled"
value="yes" <?php checked( $should_enable_toggle ); ?>
data-plugins="<?php echo wc_esc_json( wp_json_encode( $plugins ) ); ?>"
/>
<label for="wc-wizard-service-<?php echo esc_attr( $item_id ); ?>">
</span>
</div>
</li> </li>
<?php <?php
} }
@ -1769,7 +1769,7 @@ class WC_Admin_Setup_Wizard {
<div class="wc-wizard-service-description"> <div class="wc-wizard-service-description">
<?php esc_html_e( 'Collect payments from customers offline.', 'woocommerce' ); ?> <?php esc_html_e( 'Collect payments from customers offline.', 'woocommerce' ); ?>
</div> </div>
<div class="wc-wizard-service-enable"> <div class="wc-wizard-service-enable" tabindex="0">
<input class="wc-wizard-service-list-toggle" id="wc-wizard-service-list-toggle" type="checkbox"> <input class="wc-wizard-service-list-toggle" id="wc-wizard-service-list-toggle" type="checkbox">
<label for="wc-wizard-service-list-toggle"></label> <label for="wc-wizard-service-list-toggle"></label>
</div> </div>