2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText id="accessibility" label="Accessibility" v-bind="$attrs">
|
|
|
|
<h3>Screen Reader</h3>
|
|
|
|
<p>
|
|
|
|
Slider element component uses <i>slider</i> role on the handle in addition to the <i>aria-orientation</i>, <i>aria-valuemin</i>, <i>aria-valuemax</i> and <i>aria-valuenow</i> attributes. Value to describe the component can be defined
|
|
|
|
using <i>aria-labelledby</i> and <i>aria-label</i> props.
|
|
|
|
</p>
|
|
|
|
|
2024-01-30 08:16:35 +00:00
|
|
|
<DocSectionCode :code="code" hideToggleCode hideStackBlitz v-bind="$attrs" />
|
2023-02-28 08:29:30 +00:00
|
|
|
|
|
|
|
<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 to the slider.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2024-05-20 12:14:38 +00:00
|
|
|
<span class="inline-flex flex-col">
|
2023-02-28 08:29:30 +00:00
|
|
|
<i class="mb-1">left arrow</i>
|
|
|
|
<i>up arrow</i>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>Decrements the value.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2024-05-20 12:14:38 +00:00
|
|
|
<span class="inline-flex flex-col">
|
2023-02-28 08:29:30 +00:00
|
|
|
<i class="mb-1">right arrow</i>
|
|
|
|
<i>down arrow</i>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>Increments the value.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><i>home</i></td>
|
|
|
|
<td>Set the minimum value.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><i>end</i></td>
|
|
|
|
<td>Set the maximum value.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><i>page up</i></td>
|
|
|
|
<td>Increments the value by 10 steps.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><i>page down</i></td>
|
|
|
|
<td>Decrements the value by 10 steps.</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>
|