Merge pull request #18096 from ramiy/patch-2
a11y: add `role=alert` to woocommerce error msgs
This commit is contained in:
commit
e6b4b36e7d
|
@ -25,7 +25,7 @@ if ( ! $messages ) {
|
|||
}
|
||||
|
||||
?>
|
||||
<ul class="woocommerce-error">
|
||||
<ul class="woocommerce-error" role="alert">
|
||||
<?php foreach ( $messages as $message ) : ?>
|
||||
<li><?php echo wp_kses_post( $message ); ?></li>
|
||||
<?php endforeach; ?>
|
||||
|
|
Loading…
Reference in New Issue