add button role to links with action

This commit is contained in:
krvpb024 2024-02-05 11:40:11 +08:00 committed by Frédéric Guillot
parent bf54222be7
commit 57e7bd5bc9
3 changed files with 10 additions and 2 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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 }}"