primevue-mirror/doc/paginator/AccessibilityDoc.vue

64 lines
3.1 KiB
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText id="accessibility" label="Accessibility" v-bind="$attrs">
<h3>Screen Reader</h3>
<p>Paginator is placed inside a <i>nav</i> element to indicate a navigation section. All of the paginator elements can be customized using templating however the default behavious is listed below.</p>
<p>
First, previous, next and last page navigators elements with <i>aria-label</i> attributes referring to the <i>aria.firstPageLabel</i>, <i>aria.prevPageLabel</i>, <i>aria.nextPageLabel</i> and <i>aria.lastPageLabel</i> properties of the
2023-03-08 11:28:36 +00:00
<NuxtLink to="/configuration/#locale">locale</NuxtLink> API respectively.
2023-02-28 08:29:30 +00:00
</p>
2023-03-08 11:28:36 +00:00
<p>
Page links are also button elements with an <i>aria-label</i> attribute derived from the <i>aria.pageLabel</i> of the <NuxtLink to="/configuration/#locale">locale</NuxtLink> API. Current page is marked with <i>aria-current</i> set to
"page" as well.
</p>
2023-02-28 08:29:30 +00:00
<p>Current page report uses <i>aria-live="polite"</i> to instruct screen reader about the changes to the pagination state.</p>
<p>
2024-04-18 14:22:30 +00:00
Rows per page dropdown internally uses a dropdown component, refer to the <NuxtLink to="/select">select</NuxtLink> documentation for accessibility details. Additionally, the dropdown uses an <i>aria-label</i> from the
2023-03-08 11:28:36 +00:00
<i>aria.rowsPerPageLabel</i> property of the <NuxtLink to="/configuration/#locale">locale</NuxtLink> API.
2023-02-28 08:29:30 +00:00
</p>
<p>
Jump to page input is an <i>input</i> element with an <i>aria-label</i> that refers to the <i>aria.jumpToPageInputLabel</i> property and jump to page dropdown internally uses a dropdown component, with an <i>aria-label</i> that refers to
2023-03-08 11:28:36 +00:00
the <i>aria.jumpToPageDropdownLabel</i> property of the <NuxtLink to="/configuration/#locale">locale</NuxtLink> API.
2023-02-28 08:29:30 +00:00
</p>
<h3>Keyboard Support</h3>
<div class="doc-tablewrapper">
<table class="doc-table">
<thead>
<tr>
<th>Key</th>
<th>Function</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<i>tab</i>
</td>
<td>Moves focus through the paginator elements.</td>
</tr>
<tr>
<td>
<i>enter</i>
</td>
<td>Executes the paginator element action.</td>
</tr>
<tr>
<td>
<i>space</i>
</td>
<td>Executes the paginator element action.</td>
</tr>
</tbody>
</table>
</div>
<h3>Rows Per Page Dropdown Keyboard Support</h3>
2024-04-18 14:22:30 +00:00
<p>Refer to the <NuxtLink to="/select">select</NuxtLink> documentation for more details about keyboard support.</p>
2023-02-28 08:29:30 +00:00
</DocSectionText>
</template>