From 6e23aff347fee5d5e0e6ae4bca45525f0033184a Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Wed, 17 Jan 2024 21:11:43 +0000 Subject: [PATCH 1/2] Add main landmark to document --- app/views/layouts/application.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 87a62e934..2d7334224 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -22,7 +22,7 @@ %small= yield(:subtitle) = render "shared/flash_messages", flash: flash - = yield + %main= yield %footer.page-footer.font-small.bg-dark.pt-4= render "layouts/footer" / From 5cc6135b2d352011f9f54ef2d110d8972ac915cd Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Wed, 17 Jan 2024 21:13:41 +0000 Subject: [PATCH 2/2] Mark breadcrumbs as a nav --- app/views/layouts/application.html.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 2d7334224..311a712f7 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -12,9 +12,10 @@ .container #maincontainer - if content_for?(:breadcrumbs) - %ol.breadcrumb{ "aria-label" => "breadcrumb" } - %li.breadcrumb-item= link_to 'Home', root_path - = yield(:breadcrumbs) + %nav{ "aria-label" => "breadcrumb" } + %ol.breadcrumb + %li.breadcrumb-item= link_to 'Home', root_path + = yield(:breadcrumbs) - if content_for?(:buttonbar) = yield(:buttonbar)