N°3523 Add accessibility to silo selection and user menu toggler

This commit is contained in:
Stephen Abello
2021-11-19 11:14:39 +01:00
parent 18b8e7093a
commit 72d1ab5cbc
29 changed files with 540 additions and 7 deletions

24
node_modules/selectize-plugin-a11y/README.md generated vendored Normal file
View File

@@ -0,0 +1,24 @@
# selectize-plugin-a11y.js
Selectize-plugin-a11y is a plugin to make Selectize.js accessible as a Combobox.
## Selectize-plugin-a11y Usage
```html
<script type="text/javascript" src="selectize.js"></script>
<script type="text/javascript" src="selectize-plugin-a11y.js"></script>
<script>
$(function() {
$('select').selectize({
plugins: ['selectize-plugin-a11y'],
render: {
option: function($item, escape) {
// Every option must have a unique id
return `<div class="option" role="option" id="${$item.text.replace(' ', '')}">${$item.text}</div>`
}
}
});
</script>
```
## Pull requests are always welcome
Any pull request to improve the plugin will be appreciated 😉