diff options
| author | Laussel Loïc <[email protected]> | 2019-02-27 12:37:52 +0100 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-03-08 00:29:21 +0200 |
| commit | a5179125b0f5af8f5a256403d7d2eb83be2b8c8a (patch) | |
| tree | 131a3395e6b3237546b9ab0efb99cd765c8b8dd6 | |
| parent | 1a8886b7f7be9999f7f1ff339287b1fe0ea0b6ba (diff) | |
| download | bootstrap-a5179125b0f5af8f5a256403d7d2eb83be2b8c8a.tar.xz bootstrap-a5179125b0f5af8f5a256403d7d2eb83be2b8c8a.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"> |
