Merge pull request #18074 from ramiy/patch-1
a11y: add `role=alert` to woocommerce message div
This commit is contained in:
commit
466cb3e1cb
|
@ -27,5 +27,5 @@ if ( ! $messages ) {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php foreach ( $messages as $message ) : ?>
|
<?php foreach ( $messages as $message ) : ?>
|
||||||
<div class="woocommerce-message"><?php echo wp_kses_post( $message ); ?></div>
|
<div class="woocommerce-message" role="alert"><?php echo wp_kses_post( $message ); ?></div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
Loading…
Reference in New Issue