-
Notifications
You must be signed in to change notification settings - Fork 6
fix: move footer to main layout and improve contrast for WCAG compliance #542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
934354b
fix: improve footer text contrast to meet WCAG 2.1 AA requirements
cuteshaun b740121
fix: move footer from sidebar to main layout template, to meet access…
cuteshaun 34eaebf
fix: add anchor_icon component to avoid pre-commit prettier issue, re…
cuteshaun 94fe733
fix: replace new footer color with body text color
cuteshaun e2bbcf0
fix: ignore Liquid template expressions in link checker
cuteshaun fe7c4b5
Merge branch 'main' into cuteshaun/fix-footer-a11y
cuteshaun fc22616
Ignore includes.
samcunliffe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<svg viewBox="0 0 16 16" aria-hidden="true"> | ||
<use xlink:href="#svg-link"></use> | ||
</svg> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{%- comment -%} Include as: {%- include components/sidebar.html -%} Depends on: | ||
page(?), site. Results in: HTML for the side bar. Includes: title.html, | ||
components/site_nav.html, nav_footer_custom.html Overwrites: nav_footer_custom. | ||
Should not be cached, because nav_footer_custom.html might depend on page. {%- | ||
endcomment -%} | ||
|
||
<div class="side-bar"> | ||
<div class="site-header" role="banner"> | ||
<a href="{{ '/' | relative_url }}" class="site-title lh-tight" | ||
>{% include title.html %}</a | ||
> | ||
<button | ||
id="menu-button" | ||
class="site-button btn-reset" | ||
aria-label="Toggle menu" | ||
aria-pressed="false" | ||
> | ||
<svg viewBox="0 0 24 24" class="icon" aria-hidden="true"> | ||
<use xlink:href="#svg-menu"></use> | ||
</svg> | ||
</button> | ||
</div> | ||
|
||
{% include_cached components/site_nav.html %} | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!doctype html> | ||
<html lang="{{ site.lang | default: 'en-US' }}"> | ||
{% include head.html %} | ||
<body> | ||
<a class="skip-to-main" href="#main-content">Skip to main content</a> | ||
{% include icons/icons.html %} {% if page.nav_enabled == true %} {% include | ||
sidebar.html %} {% elsif layout.nav_enabled == true and page.nav_enabled == | ||
nil %} {% include sidebar.html %} {% elsif site.nav_enabled != false and | ||
layout.nav_enabled == nil and page.nav_enabled == nil %} {% include | ||
sidebar.html %} {% endif %} | ||
|
||
<div class="main" id="top"> | ||
{% include components/header.html %} | ||
|
||
<div class="main-content-wrap"> | ||
{% include components/breadcrumbs.html %} | ||
<div id="main-content" class="main-content"> | ||
<main> | ||
{% if site.heading_anchors != false %} {% capture raw_anchor_svg %} | ||
{% include components/anchor_icon.html %} {% endcapture %} {% assign | ||
anchor_svg = raw_anchor_svg | strip_newlines %} {% include | ||
vendor/anchor_headings.html html=content beforeHeading="true" | ||
anchorBody=anchor_svg anchorClass="anchor-heading" | ||
anchorAttrs="aria-labelledby='%html_id%'" %} {% else %} {{ content | ||
}} {% endif %} {% if page.has_toc != false %} {% include | ||
components/children_nav.html %} {% endif %} | ||
</main> | ||
</div> | ||
</div> | ||
|
||
<footer class="site-footer"> | ||
This site uses | ||
<a href="https://github.com/just-the-docs/just-the-docs" | ||
>Just the Docs</a | ||
>, a documentation theme for Jekyll. | ||
</footer> | ||
|
||
{% if site.search_enabled != false %} {% include | ||
components/search_footer.html %} {% endif %} | ||
</div> | ||
|
||
{% if site.mermaid %} {% include components/mermaid.html %} {% endif %} | ||
</body> | ||
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh! I'm sorry for doubting you, dear link-checker. I take back the yellow card.