Skip to content

Commit bd6b932

Browse files
committed
updated version and fixed autocomplete fix
1 parent e804152 commit bd6b932

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gsa-sam/sam-ui-elements",
3-
"version": "2.0.0-beta.8",
3+
"version": "2.0.1",
44
"description": "SAM UI library",
55
"repository": {
66
"type": "git",
@@ -107,4 +107,4 @@
107107
"webpack-md5-hash": "0.0.5",
108108
"webpack-merge": "0.14.0"
109109
}
110-
}
110+
}

src/ui-kit/form-controls/sam-sds-autocomplete/autocomplete-search/autocomplete-search.component.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<div role="combobox" [attr.id]="configuration.id + '-container'" [attr.aria-expanded]="showResults"
44
[attr.aria-owns]="showResults ? configuration.id + '-listbox' : undefined" aria-haspopup="listbox">
55
<input [disabled]="disabled" (keypress)="onkeypress($event)" (input)="textChange($event)"
6-
class="usa-input padding-right-3" [ngClass]="getClass()" #input [attr.aria-label]="configuration.ariaLabelText"
6+
class="usa-input padding-right-3" [ngClass]="getClass()" #input
7+
[attr.aria-label]="configuration.ariaLabelText ? configuration.ariaLabelText : configuration.labelText"
78
[attr.id]="configuration.id" type="text" (focus)="inputFocusHandler()" (keydown)="onKeydown($event)"
89
[(ngModel)]="inputValue" aria-autocomplete="list" [attr.placeholder]="configuration.autocompletePlaceHolderText"
910
[attr.aria-activedescendant]="
@@ -155,11 +156,11 @@
155156
aria-hidden="false" (click)="clearInput()" (keyup.enter)="clearInput()">
156157
</span>
157158
<span *ngIf="!configuration.isTagModeEnabled">
158-
<span *ngIf="!showResults && !disabled" tabindex="1" role="button" class="fa fa-caret-down"
159-
aria-label="down arrow" aria-hidden="false" (click)="openOptions()" (keyup.enter)="openOptions()">
159+
<span *ngIf="!showResults && !disabled" tabindex="0" role="button" class="fa fa-caret-down"
160+
aria-label="Display Options" aria-hidden="false" (click)="openOptions()" (keyup.enter)="openOptions()">
160161
</span>
161-
<span *ngIf="showResults && !disabled" tabindex="2" role="button" class="fa fa-caret-up"
162-
aria-label="arrow up arrow" aria-hidden="false" (click)="checkForFocus($event)"
162+
<span *ngIf="showResults && !disabled" tabindex="0" role="button" class="fa fa-caret-up"
163+
aria-label="Hide Options" aria-hidden="false" (click)="checkForFocus($event)"
163164
(keyup.enter)="checkForFocus($event)">
164165
</span>
165166
</span>

src/ui-kit/form-controls/sam-sds-autocomplete/autocomplete-search/models/SAMSDSAutocompleteConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class SAMSDSAutocompleteSearchConfiguration {
7373
/**
7474
* The aria-label for the auto-complete
7575
*/
76-
public ariaLabelText: string = "Auto Complete";
76+
public ariaLabelText: string;
7777

7878
/**
7979
* To enable the tag mode

0 commit comments

Comments
 (0)