Skip to content

Commit

Permalink
put secondary navigation in an explicit landmark nav and add a labe…
Browse files Browse the repository at this point in the history
…l on each nav (#28361)
  • Loading branch information
Lausselloic authored and XhmikosR committed Feb 27, 2019
1 parent fdfe167 commit 427799d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion site/_includes/docs-sidebar.html
Expand Up @@ -5,7 +5,7 @@
</button>
</form>

<nav class="collapse bd-links" id="bd-docs-nav">
<nav class="collapse bd-links" id="bd-docs-nav" aria-label="Main navigation">
{%- assign page_slug = page.url | split: '/' | last -%}
{%- for group in site.data.nav -%}
{%- assign link = group.pages | first -%}
Expand Down
4 changes: 2 additions & 2 deletions site/_layouts/docs.html
Expand Up @@ -15,9 +15,9 @@
</div>

{% if page.toc %}
<div class="d-none d-xl-block col-xl-2 bd-toc">
<nav class="d-none d-xl-block col-xl-2 bd-toc" aria-label="Secondary navigation">
{{ content | toc_only }}
</div>
</nav>
{% endif %}

<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">
Expand Down

0 comments on commit 427799d

Please sign in to comment.