Add aria-labelledby

This commit is contained in:
IanDelMar 2019-12-13 08:26:10 +01:00 committed by GitHub
parent 5877e21228
commit a5c9784349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -30,9 +30,9 @@ $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>
<nav class="navbar navbar-expand-md navbar-dark bg-primary">
<nav class="navbar navbar-expand-md navbar-dark bg-primary" aria-labelledby="main-nav-label">
<h2 class="sr-only">
<h2 id="main-nav-label" class="sr-only">
<?php esc_html_e( 'Main Navigation', 'understrap' ); ?>
</h2>