diff --git a/README.md b/README.md index 6ae2e48..4e47f86 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,10 @@ Teleport the menu outside of the component DOM tree. You can pass a valid string **Note**: top and left properties are calculated using a ref on the `.vue-select` with a `container.getBoundingClientRect()`. +**aria**: `{ labelledby?: string; required?: boolean; }` (default: `undefined`) + +Aria attributes to be passed to the select control to improve accessibility. + **getOptionLabel**: `(option: Option) => string` (default: `option => option.label`) A function to get the label of an option. This is useful when you want to use a property different from `label` as the label of the option. diff --git a/src/MenuOption.vue b/src/MenuOption.vue index e5543fc..1689b33 100644 --- a/src/MenuOption.vue +++ b/src/MenuOption.vue @@ -1,7 +1,9 @@ diff --git a/src/Select.vue b/src/Select.vue index 8cdebc1..9dcf55c 100644 --- a/src/Select.vue +++ b/src/Select.vue @@ -1,5 +1,5 @@