primevue-mirror/apps/showcase/doc/selectbutton/AccessibilityDoc.vue

51 lines
1.6 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>
2024-09-11 07:54:05 +00:00
<p>SelectButton component uses ToggleButton internally and has <i>group</i> role. Value to describe the component can be provided via <i>aria-labelledby</i> property.</p>
2023-02-28 08:29:30 +00:00
<h3>Keyboard Support</h3>
<p>Keyboard interaction is derived from the native browser handling of checkboxs in a group.</p>
<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>
2024-09-11 07:54:05 +00:00
<td>Moves focus to the next the focusable element in the page tab sequence.</td>
2023-02-28 08:29:30 +00:00
</tr>
<tr>
2024-09-11 07:54:05 +00:00
<td><i>shift</i> + <i>tab</i></td>
<td>Moves focus to the previous the focusable element in the page tab sequence.</td>
2023-02-28 08:29:30 +00:00
</tr>
<tr>
<td><i>space</i></td>
<td>Toggles the checked state of a button.</td>
</tr>
</tbody>
</table>
</div>
</DocSectionText>
</template>
<script>
export default {
data() {
return {
code: {
2023-09-22 12:54:14 +00:00
basic: `
<span id="label_number">Number</span>
2023-02-28 08:29:30 +00:00
<Slider aria-labelledby="label_number" />
2023-10-15 09:38:39 +00:00
<Slider aria-label="Number" />
`
2023-02-28 08:29:30 +00:00
}
};
}
};
</script>