From bc63e773e12e54ad2101d8d44b4996f4eb561deb Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Tue, 23 Jan 2024 17:16:49 +1300 Subject: [PATCH] wcag - skip nav link --- app/static/structure.css | 12 ++++++++++++ app/static/structure.scss | 13 ++++++++++++- app/templates/base.html | 1 + 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/app/static/structure.css b/app/static/structure.css index 0e71c9b1..92ad1d61 100644 --- a/app/static/structure.css +++ b/app/static/structure.css @@ -1034,4 +1034,16 @@ fieldset legend { padding-top: 0; } +.skip-link { + position: absolute; + top: -40px; + left: 0; + background-color: #fff; + z-index: 999; +} + +.skip-link:focus { + top: 0; +} + /*# sourceMappingURL=structure.css.map */ diff --git a/app/static/structure.scss b/app/static/structure.scss index deda15d5..067abbf7 100644 --- a/app/static/structure.scss +++ b/app/static/structure.scss @@ -704,4 +704,15 @@ fieldset { .list-group-item:first-child { padding-top: 0; -} \ No newline at end of file +} + +.skip-link { + position: absolute; + top: -40px; + left: 0; + background-color: #fff; + z-index: 999; +} +.skip-link:focus { + top: 0; +} diff --git a/app/templates/base.html b/app/templates/base.html index a21b4564..26c3031b 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -91,6 +91,7 @@ {% endblock %} + {% block navbar %}