Use heading instead of aria-label

See #1063 for a discussion
This commit is contained in:
IanDelMar 2019-12-03 08:50:22 +01:00
parent 27824b3c9c
commit 5877e21228
1 changed files with 5 additions and 1 deletions

View File

@ -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 class="navbar navbar-expand-md navbar-dark bg-primary" aria-label="<?php echo esc_attr_x( 'Main', 'navigation', 'understrap' ); ?>"> <nav class="navbar navbar-expand-md navbar-dark bg-primary">
<h2 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">