Ver Fonte

add button role to links with action

krvpb024 há 2 anos atrás
pai
commit
57e7bd5bc9

+ 3 - 1
internal/template/templates/views/category_entries.html

@@ -18,6 +18,7 @@
             {{ if .entries }}
             <li>
                 <a href="#"
+                    role="button"
                     data-action="markPageAsRead"
                     data-label-question="{{ t "confirm.question" }}"
                     data-label-yes="{{ t "confirm.yes" }}"
@@ -27,6 +28,7 @@
             </li>
             <li>
                 <a href="#"
+                    role="button"
                     data-confirm="true"
                     data-label-question="{{ t "confirm.question" }}"
                     data-label-yes="{{ t "confirm.yes" }}"
@@ -48,7 +50,7 @@
                 <a href="{{ route "categoryFeeds" "categoryID" .category.ID }}">{{ icon "feeds" }}{{ t "menu.feeds" }}</a>
             </li>
             <li>
-                <a href="{{ route "refreshCategoryEntriesPage" "categoryID" .category.ID }}">{{ icon "refresh" }}{{ t "menu.refresh_all_feeds" }}</a>
+                <a role="button" href="{{ route "refreshCategoryEntriesPage" "categoryID" .category.ID }}">{{ icon "refresh" }}{{ t "menu.refresh_all_feeds" }}</a>
             </li>
         </ul>
     </nav>

+ 2 - 1
internal/template/templates/views/category_feeds.html

@@ -18,6 +18,7 @@
             {{ if eq .total 0 }}
             <li>
                 <a href="#"
+                    role="button"
                     data-confirm="true"
                     data-label-question="{{ t "confirm.question" }}"
                     data-label-yes="{{ t "confirm.yes" }}"
@@ -28,7 +29,7 @@
             </li>
             {{ end }}
             <li>
-                <a href="{{ route "refreshCategoryFeedsPage" "categoryID" .category.ID }}">{{ icon "refresh" }}{{ t "menu.refresh_all_feeds" }}</a>
+                <a role="button" href="{{ route "refreshCategoryFeedsPage" "categoryID" .category.ID }}">{{ icon "refresh" }}{{ t "menu.refresh_all_feeds" }}</a>
             </li>
         </ul>
     </nav>

+ 5 - 0
internal/template/templates/views/entry.html

@@ -11,6 +11,7 @@
             <ul>
                 <li>
                     <a href="#"
+                        role="button"
                         title="{{ t "entry.status.title" }}"
                         data-toggle-status="true"
                         data-label-loading="{{ t "entry.state.saving" }}"
@@ -23,6 +24,7 @@
                 </li>
                 <li>
                     <a href="#"
+                        role="button"
                         data-toggle-bookmark="true"
                         data-bookmark-url="{{ route "toggleBookmark" "entryID" .entry.ID }}"
                         data-label-loading="{{ t "entry.state.saving" }}"
@@ -36,6 +38,7 @@
                 {{ if .hasSaveEntry }}
                 <li>
                     <a href="#"
+                        role="button"
                         title="{{ t "entry.save.title" }}"
                         data-save-entry="true"
                         data-save-url="{{ route "saveEntry" "entryID" .entry.ID }}"
@@ -54,6 +57,7 @@
                 </li>
                 <li>
                     <a href="#"
+                        role="button"
                         data-confirm="true"
                         data-url="{{ route "unshareEntry" "entryID" .entry.ID }}"
                         data-label-question="{{ t "confirm.question" }}"
@@ -78,6 +82,7 @@
                 </li>
                 <li>
                     <a href="#"
+                        role="button"
                         title="{{ t "entry.scraper.title" }}"
                         data-fetch-content-entry="true"
                         data-fetch-content-url="{{ route "fetchContent" "entryID" .entry.ID }}"