Merge pull request #1063 from IanDelMar/header-aria-label
Add aria-label to <nav>
This commit is contained in:
commit
7f9412557d
|
@ -30,7 +30,11 @@ $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 id="main-nav" class="navbar navbar-expand-md navbar-dark bg-primary">
|
<nav id="main-nav" class="navbar navbar-expand-md navbar-dark bg-primary" aria-labelledby="main-nav-label">
|
||||||
|
|
||||||
|
<h2 id="main-nav-label" class="sr-only">
|
||||||
|
<?php esc_html_e( 'Main Navigation', 'understrap' ); ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
<?php if ( 'container' === $container ) : ?>
|
<?php if ( 'container' === $container ) : ?>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
Reference in New Issue