Browse Source

Fix aria-labels for catalog nav (#288)

pull/289/head
Steel Wagstaff 3 years ago committed by GitHub
parent
commit
9df9f61803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      partials/paged-navigation.php

4
partials/paged-navigation.php

@ -1,5 +1,5 @@
<nav class="booknav" aria-labelledby="latest-books-title book-navigation">
<span class="screen-reader-text"><?php _e( 'Navigation', 'pressbooks-aldine' ); ?></span>
<nav class="booknav" aria-labelledby="catalog-books">
<span class="screen-reader-text" id="catalog-books"><?php _e( 'Book Catalog Navigation', 'pressbooks-aldine' ); ?></span>
<?php if ( $previous_page ) : ?>
<a class="previous" rel="previous" data-page="<?php echo $previous_page; ?>" href="<?php echo network_home_url( "/page/$previous_page/#latest-books" ); ?>">
<span class="screen-reader-text"><?php _e( 'Previous Page', 'pressbooks' ); ?></span>

Loading…
Cancel
Save