From 6db8e1b6e0f7705b1bb0ec529a5d04f02e2a5225 Mon Sep 17 00:00:00 2001 From: Jacob Parish Date: Wed, 4 Oct 2017 07:51:16 -0500 Subject: [PATCH] feat(a11y): Add ariaLabel option. - Removes old aria-labelledby logic --- README.md | 4 +-- src/autocomplete/typeahead.js | 13 +--------- test/unit/typeahead_spec.js | 49 +++++++---------------------------- 3 files changed, 13 insertions(+), 53 deletions(-) diff --git a/README.md b/README.md index 3c46e1eb2..aa301293c 100644 --- a/README.md +++ b/README.md @@ -316,7 +316,7 @@ When initializing an autocomplete, there are a number of options you can configu * `keyboardShortcuts` - Array of shortcut that will focus the input. For example if you want to bind `s` and `/` you can specify: `keyboardShortcuts: ['s', '/']` -* `ariaLabelledBy` - An optional id to use for the `aria-labelledby` attribute. Specify `false` to exclude the attribute. Defaults to using the `placeholder` as the label if a `placeholder` is specified. +* `ariaLabel` - An optional string that will populate the `aria-label` attribute. ```html