Add aria label to order list buttons

This commit is contained in:
Tetrakern 2023-06-11 19:21:15 +02:00
parent 3627204f06
commit df31541171

View File

@ -412,7 +412,7 @@ function fictioneer_sort_order_filter_interface( $args ) {
echo '</div>';
?></div>
<a class="list-button _order <?php echo $args['order'] === 'desc' ? '_on' : '_off'; ?>" href="<?php echo $order_link; ?>">
<a class="list-button _order <?php echo $args['order'] === 'desc' ? '_on' : '_off'; ?>" href="<?php echo $order_link; ?>" aria-label="<?php esc_attr_e( 'Toggle between ascending and descending order', 'fictioneer' ); ?>">
<i class="fa-solid fa-arrow-up-short-wide _off"></i><i class="fa-solid fa-arrow-down-wide-short _on"></i>
</a>