Use of <button> instead of <a> for modal-close

This was the clone of themes.php modal close button
This commit is contained in:
shivapoudel 2015-04-04 13:57:20 +05:45
parent 29f584ba98
commit 227c83a084
1 changed files with 6 additions and 2 deletions

View File

@ -297,8 +297,10 @@ if ( wc_tax_enabled() ) {
<div class="wc-backbone-modal-content"> <div class="wc-backbone-modal-content">
<section class="wc-backbone-modal-main" role="main"> <section class="wc-backbone-modal-main" role="main">
<header class="wc-backbone-modal-header"> <header class="wc-backbone-modal-header">
<a class="modal-close modal-close-link" href="#"><span class="close-icon"><span class="screen-reader-text">Close media panel</span></span></a>
<h1><?php _e( 'Add products', 'woocommerce' ); ?></h1> <h1><?php _e( 'Add products', 'woocommerce' ); ?></h1>
<button class="modal-close modal-close-link dashicons dashicons-no-alt">
<span class="screen-reader-text">Close modal panel</span>
</button>
</header> </header>
<article> <article>
<form action="" method="post"> <form action="" method="post">
@ -321,8 +323,10 @@ if ( wc_tax_enabled() ) {
<div class="wc-backbone-modal-content"> <div class="wc-backbone-modal-content">
<section class="wc-backbone-modal-main" role="main"> <section class="wc-backbone-modal-main" role="main">
<header class="wc-backbone-modal-header"> <header class="wc-backbone-modal-header">
<a class="modal-close modal-close-link" href="#"><span class="close-icon"><span class="screen-reader-text">Close media panel</span></span></a>
<h1><?php _e( 'Add tax', 'woocommerce' ); ?></h1> <h1><?php _e( 'Add tax', 'woocommerce' ); ?></h1>
<button class="modal-close modal-close-link dashicons dashicons-no-alt">
<span class="screen-reader-text">Close modal panel</span>
</button>
</header> </header>
<article> <article>
<form action="" method="post"> <form action="" method="post">