Skip to content

Commit

Permalink
rearranges main and asides on node pages to enable proper focus order (
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytaylor authored and tjheffner committed Dec 6, 2023
1 parent c1c7868 commit 4ee3283
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@
{{ page.breadcrumb }}

<div class="node-columns">
{% set has_sidebar_first = page.sidebar_first|render|striptags|trim is not empty %}
{% if has_sidebar_first %}
<aside class="layout-sidebar-first" aria-label="Section Menu" role="complementary">
{{ page.sidebar_first }}

</aside>{# /.layout-sidebar-first #}
{% endif %}

<main class="page-content clearfix" role="main">
<div class="visually-hidden"><a id="main-content" tabindex="-1"></a></div>
{{ page.highlighted }}
Expand All @@ -61,14 +69,6 @@
{{ page.content }}
</main>

{% set has_sidebar_first = page.sidebar_first|render|striptags|trim is not empty %}
{% if has_sidebar_first %}
<aside class="layout-sidebar-first" aria-label="Section Menu" role="complementary">
{{ page.sidebar_first }}

</aside>{# /.layout-sidebar-first #}
{% endif %}

{% if page.sidebar_second %}
<aside class="layout-sidebar-second" aria-label="Content Metadata" role="complementary">
{{ page.sidebar_second }}
Expand Down

0 comments on commit 4ee3283

Please sign in to comment.