0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

put secondary navigation in an explicit landmark nav and add a label on each nav (#28361)

This commit is contained in:
Laussel Loïc 2019-02-27 12:37:52 +01:00 committed by XhmikosR
parent fdfe1679ba
commit 427799d075
2 changed files with 3 additions and 3 deletions

View File

@ -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 -%}

View File

@ -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">