File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
src/ui-kit/form-controls/sam-sds-autocomplete/autocomplete-search Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 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" ,
107107 "webpack-md5-hash" : " 0.0.5" ,
108108 "webpack-merge" : " 0.14.0"
109109 }
110- }
110+ }
Original file line number Diff line number Diff line change 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] ="
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 >
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments