primevue-mirror/doc/scrolltop/AccessibilityDoc.vue

36 lines
1.2 KiB
Vue

<template>
<DocSectionText id="accessibility" label="Accessibility" v-bind="$attrs">
<h3>Screen Reader</h3>
<p>
ScrollTop uses a button element with an <i>aria-label</i> that refers to the <i>aria.scrollTop</i> property of the <nuxt-link to="/locale">locale</nuxt-link> API by default, you may use your own aria roles and attributes as any valid
attribute is passed to the button element implicitly.
</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>enter</i>
</td>
<td>Scrolls to top.</td>
</tr>
<tr>
<td>
<i>space</i>
</td>
<td>Scrolls to top.</td>
</tr>
</tbody>
</table>
</div>
</DocSectionText>
</template>