Add role="presentation" to table within add-to-cart form. (#33123)
Add table role="presentation" for an accessibility enhancement.
This commit is contained in:
parent
b85dca4308
commit
13f4e1572a
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Add role="presentation" to table on the add-to-cart form as an accessibility enhancement.
|
|
@ -31,7 +31,7 @@ do_action( 'woocommerce_before_add_to_cart_form' ); ?>
|
|||
<?php if ( empty( $available_variations ) && false !== $available_variations ) : ?>
|
||||
<p class="stock out-of-stock"><?php echo esc_html( apply_filters( 'woocommerce_out_of_stock_message', __( 'This product is currently out of stock and unavailable.', 'woocommerce' ) ) ); ?></p>
|
||||
<?php else : ?>
|
||||
<table class="variations" cellspacing="0">
|
||||
<table class="variations" cellspacing="0" role="presentation">
|
||||
<tbody>
|
||||
<?php foreach ( $attributes as $attribute_name => $options ) : ?>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in New Issue