git: c2df6c5ffb - main - Add title to icons to improve the accessibility

From: Sergio Carlavilla Delgado <carlavilla_at_FreeBSD.org>
Date: Sun, 06 Nov 2022 20:42:38 UTC
The branch main has been updated by carlavilla:

URL: https://cgit.FreeBSD.org/doc/commit/?id=c2df6c5ffb8a41a51279358acc93d1bacb3617d2

commit c2df6c5ffb8a41a51279358acc93d1bacb3617d2
Author:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
AuthorDate: 2022-11-06 20:42:07 +0000
Commit:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
CommitDate: 2022-11-06 20:42:07 +0000

    Add title to icons to improve the accessibility
---
 documentation/themes/beastie/layouts/articles/list.html   |  4 ++--
 documentation/themes/beastie/layouts/articles/single.html |  4 ++--
 documentation/themes/beastie/layouts/books/list.html      | 14 +++++++-------
 documentation/themes/beastie/layouts/books/single.html    | 14 +++++++-------
 4 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/documentation/themes/beastie/layouts/articles/list.html b/documentation/themes/beastie/layouts/articles/list.html
index e03ae61918..5ef60849a6 100644
--- a/documentation/themes/beastie/layouts/articles/list.html
+++ b/documentation/themes/beastie/layouts/articles/list.html
@@ -36,9 +36,9 @@
           {{ $pathSections := split .Page.File "/" }}
           {{ $path := printf "%s/%s/%s_%s.pdf" (index $pathSections 0) (index $pathSections 1) (index $pathSections 1) $.Site.Home.Language }}
           {{ $pdfUrl := printf "%s%s/%s" $.Site.Params.downloadBaseUrl $.Site.Home.Language $path }}
-          <li><i class="fa fa-file-pdf-o" aria-hidden="true"></i><a href="{{ $pdfUrl }}">{{ i18n "download-pdf" }}</a></li>
+          <li><i class="fa fa-file-pdf-o" aria-hidden="true" title="{{ i18n "download-pdf" }}"></i><a href="{{ $pdfUrl }}">{{ i18n "download-pdf" }}</a></li>
           {{ $editUrl := printf "%s%s/%s" $.Site.Params.editBaseUrl $.Site.Home.Language .Page.File }}
-          <li><i class="fa fa-pencil-square-o" aria-hidden="true"></i><a href="{{ $editUrl }}" target="_blank">{{ i18n "edit-page" }}</a></li>
+          <li><i class="fa fa-pencil-square-o" aria-hidden="true" title="{{ i18n "edit-page" }}"></i><a href="{{ $editUrl }}" target="_blank">{{ i18n "edit-page" }}</a></li>
         </ul>
       </div>
     </div>
diff --git a/documentation/themes/beastie/layouts/articles/single.html b/documentation/themes/beastie/layouts/articles/single.html
index e03ae61918..5ef60849a6 100644
--- a/documentation/themes/beastie/layouts/articles/single.html
+++ b/documentation/themes/beastie/layouts/articles/single.html
@@ -36,9 +36,9 @@
           {{ $pathSections := split .Page.File "/" }}
           {{ $path := printf "%s/%s/%s_%s.pdf" (index $pathSections 0) (index $pathSections 1) (index $pathSections 1) $.Site.Home.Language }}
           {{ $pdfUrl := printf "%s%s/%s" $.Site.Params.downloadBaseUrl $.Site.Home.Language $path }}
-          <li><i class="fa fa-file-pdf-o" aria-hidden="true"></i><a href="{{ $pdfUrl }}">{{ i18n "download-pdf" }}</a></li>
+          <li><i class="fa fa-file-pdf-o" aria-hidden="true" title="{{ i18n "download-pdf" }}"></i><a href="{{ $pdfUrl }}">{{ i18n "download-pdf" }}</a></li>
           {{ $editUrl := printf "%s%s/%s" $.Site.Params.editBaseUrl $.Site.Home.Language .Page.File }}
-          <li><i class="fa fa-pencil-square-o" aria-hidden="true"></i><a href="{{ $editUrl }}" target="_blank">{{ i18n "edit-page" }}</a></li>
+          <li><i class="fa fa-pencil-square-o" aria-hidden="true" title="{{ i18n "edit-page" }}"></i><a href="{{ $editUrl }}" target="_blank">{{ i18n "edit-page" }}</a></li>
         </ul>
       </div>
     </div>
diff --git a/documentation/themes/beastie/layouts/books/list.html b/documentation/themes/beastie/layouts/books/list.html
index 5356835001..ea5653a6ed 100644
--- a/documentation/themes/beastie/layouts/books/list.html
+++ b/documentation/themes/beastie/layouts/books/list.html
@@ -17,7 +17,7 @@
     <div class="book-menu-mobile">
       <label for="menu-control">
         <span class="menu-control-button">
-          <i class="fa fa-list" aria-hidden="true"></i>
+          <i class="fa fa-list" aria-hidden="true" title="{{ i18n "book-menu" }}"></i>
           {{ i18n "book-menu" }}
         </span>
       </label>
@@ -60,7 +60,7 @@
     <div class="buttons">
       {{ if .Params.prev }}
       <div class="prev">
-        <i class="fa fa-angle-left" aria-hidden="true"></i>
+        <i class="fa fa-angle-left" aria-hidden="true" title="{{ i18n "prev" }}"></i>
         <div class="container">
           {{ if $.Site.Params.isOnline }}
             <a href={{ .Params.Prev | absLangURL }} class="direction">{{ i18n "prev" }}</a>
@@ -79,7 +79,7 @@
       </div>
       {{ end }}
       <div class="home">
-        <i class="fa fa-home" aria-hidden="true"></i>
+        <i class="fa fa-home" aria-hidden="true" title="{{ i18n "home" }}"></i>
         <div class="container">
           {{ if $.Site.Params.isOnline }}
             <a href="../" class="direction">{{ i18n "home" }}</a>
@@ -106,7 +106,7 @@
             {{ end }}
           {{ end }}
         </div>
-        <i class="fa fa-angle-right" aria-hidden="true"></i>
+        <i class="fa fa-angle-right" aria-hidden="true" title="{{ i18n "next" }}"></i>
       </div>
       {{ end }}
     </div>
@@ -123,13 +123,13 @@
           {{ $pathSections := split .Page.File "/" }}
           {{ if $.Site.Params.isOnline }}
             {{ $singlePagePath := printf "%s/%s/book/" (index $pathSections 0) (index $pathSections 1) }}
-            <li><i class="fa fa fa-book" aria-hidden="true"></i><a href={{ $singlePagePath | absLangURL }}>{{ i18n "single-html" }}</a></li>
+            <li><i class="fa fa fa-book" aria-hidden="true" title="{{ i18n "single-html" }}"></i><a href={{ $singlePagePath | absLangURL }}>{{ i18n "single-html" }}</a></li>
           {{ end }}
           {{ $path := printf "%s/%s/%s_%s.pdf" (index $pathSections 0) (index $pathSections 1) (index $pathSections 1) $.Site.Home.Language }}
           {{ $pdfUrl := printf "%s%s/%s" $.Site.Params.downloadBaseUrl $.Site.Home.Language $path }}
-          <li><i class="fa fa-file-pdf-o" aria-hidden="true"></i><a href="{{ $pdfUrl }}">{{ i18n "download-pdf" }}</a></li>
+          <li><i class="fa fa-file-pdf-o" aria-hidden="true" title="{{ i18n "download-pdf" }}"></i><a href="{{ $pdfUrl }}">{{ i18n "download-pdf" }}</a></li>
           {{ $editUrl := printf "%s%s/%s" $.Site.Params.editBaseUrl $.Site.Home.Language .Page.File }}
-          <li><i class="fa fa-pencil-square-o" aria-hidden="true"></i><a href="{{ $editUrl }}" target="_blank">{{ i18n "edit-page" }}</a></li>
+          <li><i class="fa fa-pencil-square-o" aria-hidden="true" title="{{ i18n "edit-page" }}"></i><a href="{{ $editUrl }}" target="_blank">{{ i18n "edit-page" }}</a></li>
         </ul>
       </div>
     </div>
diff --git a/documentation/themes/beastie/layouts/books/single.html b/documentation/themes/beastie/layouts/books/single.html
index 5356835001..ea5653a6ed 100644
--- a/documentation/themes/beastie/layouts/books/single.html
+++ b/documentation/themes/beastie/layouts/books/single.html
@@ -17,7 +17,7 @@
     <div class="book-menu-mobile">
       <label for="menu-control">
         <span class="menu-control-button">
-          <i class="fa fa-list" aria-hidden="true"></i>
+          <i class="fa fa-list" aria-hidden="true" title="{{ i18n "book-menu" }}"></i>
           {{ i18n "book-menu" }}
         </span>
       </label>
@@ -60,7 +60,7 @@
     <div class="buttons">
       {{ if .Params.prev }}
       <div class="prev">
-        <i class="fa fa-angle-left" aria-hidden="true"></i>
+        <i class="fa fa-angle-left" aria-hidden="true" title="{{ i18n "prev" }}"></i>
         <div class="container">
           {{ if $.Site.Params.isOnline }}
             <a href={{ .Params.Prev | absLangURL }} class="direction">{{ i18n "prev" }}</a>
@@ -79,7 +79,7 @@
       </div>
       {{ end }}
       <div class="home">
-        <i class="fa fa-home" aria-hidden="true"></i>
+        <i class="fa fa-home" aria-hidden="true" title="{{ i18n "home" }}"></i>
         <div class="container">
           {{ if $.Site.Params.isOnline }}
             <a href="../" class="direction">{{ i18n "home" }}</a>
@@ -106,7 +106,7 @@
             {{ end }}
           {{ end }}
         </div>
-        <i class="fa fa-angle-right" aria-hidden="true"></i>
+        <i class="fa fa-angle-right" aria-hidden="true" title="{{ i18n "next" }}"></i>
       </div>
       {{ end }}
     </div>
@@ -123,13 +123,13 @@
           {{ $pathSections := split .Page.File "/" }}
           {{ if $.Site.Params.isOnline }}
             {{ $singlePagePath := printf "%s/%s/book/" (index $pathSections 0) (index $pathSections 1) }}
-            <li><i class="fa fa fa-book" aria-hidden="true"></i><a href={{ $singlePagePath | absLangURL }}>{{ i18n "single-html" }}</a></li>
+            <li><i class="fa fa fa-book" aria-hidden="true" title="{{ i18n "single-html" }}"></i><a href={{ $singlePagePath | absLangURL }}>{{ i18n "single-html" }}</a></li>
           {{ end }}
           {{ $path := printf "%s/%s/%s_%s.pdf" (index $pathSections 0) (index $pathSections 1) (index $pathSections 1) $.Site.Home.Language }}
           {{ $pdfUrl := printf "%s%s/%s" $.Site.Params.downloadBaseUrl $.Site.Home.Language $path }}
-          <li><i class="fa fa-file-pdf-o" aria-hidden="true"></i><a href="{{ $pdfUrl }}">{{ i18n "download-pdf" }}</a></li>
+          <li><i class="fa fa-file-pdf-o" aria-hidden="true" title="{{ i18n "download-pdf" }}"></i><a href="{{ $pdfUrl }}">{{ i18n "download-pdf" }}</a></li>
           {{ $editUrl := printf "%s%s/%s" $.Site.Params.editBaseUrl $.Site.Home.Language .Page.File }}
-          <li><i class="fa fa-pencil-square-o" aria-hidden="true"></i><a href="{{ $editUrl }}" target="_blank">{{ i18n "edit-page" }}</a></li>
+          <li><i class="fa fa-pencil-square-o" aria-hidden="true" title="{{ i18n "edit-page" }}"></i><a href="{{ $editUrl }}" target="_blank">{{ i18n "edit-page" }}</a></li>
         </ul>
       </div>
     </div>