⚒ Fix menu a11y issues

This commit is contained in:
tatianamac 2019-12-12 18:15:39 -08:00
parent fe483b0a8c
commit beac1ac6f2
4 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
%nav.sl-c-list-navigation-wrapper.sl-c-list-navigation-wrapper--collapsible
%h2#content-nav Contents
%div.sl-c-list-navigation-wrapper.sl-c-list-navigation-wrapper--collapsible
%h2 Contents
= documentation_toc

View File

@ -1,7 +1,7 @@
= wrap_layout :layout do
.sl-l-medium-holy-grail
.sl-l-medium-holy-grail__body
%nav.sl-l-medium-holy-grail__navigation(aria-labelledby='content-nav' role='navigation')
%nav.sl-l-medium-holy-grail__navigation(aria-label='Content navigation' role='navigation')
= yield_content :navigation
.sl-l-medium-holy-grail__main

View File

@ -99,9 +99,9 @@
.sl-l-container.sl-background--white{class: section_class}= yield
.sl-c-alert
.sl-l-container.sl-c-list-horizontal-wrapper
.sl-l-container.sl-c-list-horizontal-wrapper(aria-labelledby='release-nav')
%ul.sl-l-grid--justify-center
%li
%li#release-nav
Current Releases:
%li

View File

@ -7,7 +7,7 @@
- if current_page.data.table_of_contents
- content_for :complementary do
%nav.page-sections.sl-c-list-navigation-wrapper.sl-c-list-navigation-wrapper--collapsible
%h3 Page Sections
%nav.page-sections.sl-c-list-navigation-wrapper.sl-c-list-navigation-wrapper--collapsible(aria-labelledby='page-sections')
%h3#page-sections Page Sections
= current_page.metadata[:table_of_contents]