diff --git a/_assets/styles/_nav.scss b/_assets/styles/_nav.scss index 9815609c2..a26ae3b65 100644 --- a/_assets/styles/_nav.scss +++ b/_assets/styles/_nav.scss @@ -8,6 +8,14 @@ height: $navbar-height; } +// The panel and its backdrop both cross the toggle while the sidebar slides, +// so a tap in that beat would land on whichever one is passing. Sealing the +// sidebar off sends it back to the button, which ignores it until the slide +// settles. The footer script sets the attribute. +[data-sidebar-busy] bento-sidebar { + pointer-events: none; +} + bento-sidebar { background-color: $secondary; diff --git a/_includes/footer.liquid b/_includes/footer.liquid index f325beeec..5d114bf50 100644 --- a/_includes/footer.liquid +++ b/_includes/footer.liquid @@ -5,16 +5,46 @@ diff --git a/_includes/header.liquid b/_includes/header.liquid index b17ebac8c..19efdb88f 100644 --- a/_includes/header.liquid +++ b/_includes/header.liquid @@ -11,6 +11,8 @@ class='navbar-toggler' type='button' aria-label='Toggle navigation' + aria-controls='sidebar' + aria-expanded='false' > {% include 'assets/img/sublime-theme/hamburger-secondary.svg' %} @@ -36,17 +38,15 @@ - +