2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-19 09:50:33 +03:00

add accessibility documentation (#867)

This commit is contained in:
Jeff Sagal
2019-04-29 22:08:56 -07:00
committed by GitHub
parent ab99763981
commit 5492ee1126
6 changed files with 87 additions and 12 deletions
@@ -1,6 +1,7 @@
<template>
<div>
<v-select
v-model="selected"
:options="['Canada', 'United States']"
:components="{Deselect}"
/>
@@ -10,6 +11,7 @@
<script>
export default {
data: () => ({
selected: 'Canada',
Deselect: {
render: createElement => createElement('span', '❌'),
},
@@ -1,8 +1,6 @@
<template>
<div>
<v-select
multiple
v-model="selected"
:options="['Canada', 'United States']"
:components="{OpenIndicator}"
/>
@@ -12,9 +10,8 @@
<script>
export default {
data: () => ({
selected: ['Canada'],
OpenIndicator: {
render: createElement => createElement('span', {class: {'toggle': true}}),
render: createElement => createElement('span', '🔽'),
},
}),
};
+8 -1
View File
@@ -93,7 +93,6 @@ module.exports = {
['guide/install', 'Installation'],
['guide/options', 'Dropdown Options'],
['guide/values', 'Selecting Values'],
['guide/localization', 'Localization'],
['guide/upgrading', 'Upgrading 2.x to 3.x'],
],
},
@@ -106,6 +105,14 @@ module.exports = {
['guide/slots', 'Slots'],
],
},
{
title: 'Accessibility',
collapsable: false,
children: [
['guide/accessibility', 'WAI-ARIA Spec'],
['guide/localization', 'Localization'],
],
},
{
title: 'Digging Deeper',
collapsable: false,