Add aria-label to <nav>

This commit is contained in:
IanDelMar 2019-11-12 08:51:05 +01:00
parent 91cba1ccac
commit 27824b3c9c
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ $container = get_theme_mod( 'understrap_container_type' );
<a class="skip-link sr-only sr-only-focusable" href="#content"><?php esc_html_e( 'Skip to content', 'understrap' ); ?></a> <a class="skip-link sr-only sr-only-focusable" href="#content"><?php esc_html_e( 'Skip to content', 'understrap' ); ?></a>
<nav class="navbar navbar-expand-md navbar-dark bg-primary"> <nav class="navbar navbar-expand-md navbar-dark bg-primary" aria-label="<?php echo esc_attr_x( 'Main', 'navigation', 'understrap' ); ?>">
<?php if ( 'container' == $container ) : ?> <?php if ( 'container' == $container ) : ?>
<div class="container"> <div class="container">