Skip to content

Commit 8d2502d

Browse files
authored
Merge pull request #1074 from dnum-mi/fix/#1072-dsfr-pagination-intitule-premiere-derniere-page
fix(DsfrPagination): ♿ Affiche une alternative textuelle a…
2 parents b08f935 + aebcf5d commit 8d2502d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/DsfrPagination/DsfrPagination.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ const isCurrentPage = (page: Page) => props.pages.indexOf(page) === props.curren
5050
:title="firstPageTitle"
5151
:aria-disabled="currentPage === 0 ? true : undefined"
5252
@click.prevent="tofirstPage()"
53-
/>
53+
>
54+
<span class="fr-sr-only">{{ firstPageTitle }}</span>
55+
</a>
5456
</li>
5557
<li>
5658
<a
@@ -95,7 +97,9 @@ const isCurrentPage = (page: Page) => props.pages.indexOf(page) === props.curren
9597
:disabled="currentPage === pages.length - 1 ? true : undefined"
9698
:aria-disabled="currentPage === pages.length - 1 ? true : undefined"
9799
@click.prevent="toLastPage()"
98-
/>
100+
>
101+
<span class="fr-sr-only">{{ lastPageTitle }}</span>
102+
</a>
99103
</li>
100104
</ul>
101105
</nav>

0 commit comments

Comments
 (0)