mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-08 08:52:19 +02:00
Fix typo on aria-labelledby attribute
This commit is contained in:
parent
20d3f5cd55
commit
72da548a64
|
@ -615,7 +615,7 @@ const example = new Choices(element, {
|
|||
|
||||
**Input types affected:** `select-one`, `select-multiple`
|
||||
|
||||
**Usage:** The labelId improves accessibility. If set, it will add aria-labeledby to the choices element.
|
||||
**Usage:** The labelId improves accessibility. If set, it will add aria-labelledby to the choices element.
|
||||
|
||||
### classNames
|
||||
|
||||
|
|
|
@ -412,7 +412,7 @@ export interface Options {
|
|||
*/
|
||||
fuseOptions: Fuse.IFuseOptions<Choices>;
|
||||
/**
|
||||
* ID of the connected label to improve a11y. If set, aria-labeledby will be added.
|
||||
* ID of the connected label to improve a11y. If set, aria-labelledby will be added.
|
||||
*/
|
||||
labelId: string;
|
||||
/**
|
||||
|
|
|
@ -454,7 +454,7 @@ export interface Options {
|
|||
fuseOptions: Fuse.IFuseOptions<Choices>;
|
||||
|
||||
/**
|
||||
* ID of the connected label to improve a11y. If set, aria-labeledby will be added.
|
||||
* ID of the connected label to improve a11y. If set, aria-labelledby will be added.
|
||||
*/
|
||||
labelId: string;
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ describe('templates', () => {
|
|||
tabindex="0"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false"
|
||||
aria-labeledby="${labelId}"
|
||||
aria-labelledby="${labelId}"
|
||||
dir="${direction}"
|
||||
>
|
||||
</div>
|
||||
|
|
|
@ -45,7 +45,7 @@ const templates = {
|
|||
div.setAttribute('aria-haspopup', 'true');
|
||||
div.setAttribute('aria-expanded', 'false');
|
||||
if (labelId) {
|
||||
div.setAttribute('aria-labeledby', labelId);
|
||||
div.setAttribute('aria-labelledby', labelId);
|
||||
}
|
||||
|
||||
return div;
|
||||
|
|
Loading…
Reference in a new issue