diff options
| author | Laussel Loïc <[email protected]> | 2019-02-27 12:37:52 +0100 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-02-27 13:37:52 +0200 |
| commit | 427799d07560ab1e003ef423b0b9ae6d772e3638 (patch) | |
| tree | c758cdd60e164a0ad1164185bc202cdfd72d1fd5 | |
| parent | fdfe1679baf03ece3259dfa0091c270ecb604883 (diff) | |
| download | bootstrap-427799d07560ab1e003ef423b0b9ae6d772e3638.tar.xz bootstrap-427799d07560ab1e003ef423b0b9ae6d772e3638.zip | |
put secondary navigation in an explicit landmark `nav` and add a label on each nav (#28361)
| -rw-r--r-- | site/_includes/docs-sidebar.html | 2 | ||||
| -rw-r--r-- | site/_layouts/docs.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/site/_includes/docs-sidebar.html b/site/_includes/docs-sidebar.html index 4a41a5581..d2d47a57d 100644 --- a/site/_includes/docs-sidebar.html +++ b/site/_includes/docs-sidebar.html @@ -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 -%} diff --git a/site/_layouts/docs.html b/site/_layouts/docs.html index 1d2125508..cc4910c04 100644 --- a/site/_layouts/docs.html +++ b/site/_layouts/docs.html @@ -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"> |
