From 8d4c1deb153d3a08a553dd76164ae2f5264ea097 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 27 Oct 2020 16:20:22 +0800 Subject: [PATCH] Improve web accessibility - Add associated label to form elements. - Add discernible name to links. --- _data/contact.yml | 3 ++ _includes/post-paginator.html | 63 +++++++++++++++++------------------ _includes/post-sharing.html | 2 +- _includes/sidebar.html | 2 +- _includes/topbar.html | 5 +-- _layouts/default.html | 2 +- tabs/categories.md | 5 +-- 7 files changed, 42 insertions(+), 40 deletions(-) diff --git a/_data/contact.yml b/_data/contact.yml index c6f6460..88f9a6b 100644 --- a/_data/contact.yml +++ b/_data/contact.yml @@ -21,11 +21,14 @@ # Uncomment and complete the url below to enable more contact options # - +# type: mastodon # icon: 'fab fa-mastodon' # icons powered by # url: '' # Fill with your mastodon account page # - +# type: linkedin # icon: 'fab fa-linkedin' # icons powered by # url: '' # Fill with your Linkedin homepage # - +# type: stack-overflow # icon: 'fab fa-stack-overflow' # url: '' # Fill with your stackoverflow homepage diff --git a/_includes/post-paginator.html b/_includes/post-paginator.html index 238367d..cfc53ec 100644 --- a/_includes/post-paginator.html +++ b/_includes/post-paginator.html @@ -10,17 +10,15 @@ \ No newline at end of file + diff --git a/_includes/post-sharing.html b/_includes/post-sharing.html index 889dd48..04e41ee 100644 --- a/_includes/post-sharing.html +++ b/_includes/post-sharing.html @@ -16,7 +16,7 @@ {% for share in site.data.share.platforms %} {% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url %} + title="{{ share.type }}" target="_blank" rel="noopener" aria-label="{{ share.type }}"> {% endfor %} diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 7a3a90f..1e9e4a1 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -81,7 +81,7 @@ {% endcapture %} {% if url != '' %} - + {% endif %} diff --git a/_includes/topbar.html b/_includes/topbar.html index 5995e8f..1d4f144 100644 --- a/_includes/topbar.html +++ b/_includes/topbar.html @@ -41,10 +41,11 @@ - + Cancel - \ No newline at end of file + diff --git a/_layouts/default.html b/_layouts/default.html index 1c3b610..03047bf 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -48,7 +48,7 @@ layout: compress
- + diff --git a/tabs/categories.md b/tabs/categories.md index d621bfb..4287e34 100644 --- a/tabs/categories.md +++ b/tabs/categories.md @@ -64,8 +64,9 @@ type: categories {% if sub_categories_size > 0%} - + {% else %}