Skip to content

Commit eb8de09

Browse files
authored
Merge pull request UiPath#339 from UiPath/feat/suggest_aria_label
feat(suggest): add input for aria-label
2 parents 1d4b903 + 93007ac commit eb8de09

File tree

6 files changed

+21
-7
lines changed

6 files changed

+21
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# v14.7.9 (2023-05-11)
2+
* **suggest** add input for aria-label
3+
* **chore** bump version to v14.7.8
4+
* **fix** display outline on suggest grid filter
5+
* **chore** bump version to v14.7.7
6+
* **suggest** add aria-selected to item
7+
18
# v14.7.8 (2023-05-10)
29
* **fix** display outline on suggest grid filter
310

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-components",
3-
"version": "14.7.8",
3+
"version": "14.7.9",
44
"author": {
55
"name": "UiPath Inc",
66
"url": "https://uipath.com"

projects/angular/components/ui-suggest/src/ui-suggest.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
[uiAutofocus]="!isOpen && focus"
2222
[refocus]="!isOpen && focus"
2323
[matRippleDisabled]="isFormControl"
24-
[attr.aria-label]="placeholder"
24+
[attr.aria-label]="ariaLabel ?? placeholder"
2525
[attr.aria-describedby]="describedBy"
2626
[attr.aria-required]="required"
2727
[attr.aria-disabled]="disabled || readonly"
@@ -80,7 +80,7 @@
8080
<ng-template #chipsTemplate>
8181
<mat-chip-list #chipList
8282
[attr.tabindex]="!disabled && !readonly ? 0 : null"
83-
[attr.aria-label]="placeholder"
83+
[attr.aria-label]="ariaLabel ?? placeholder"
8484
[attr.aria-describedby]="describedBy"
8585
[attr.aria-required]="required"
8686
[attr.aria-disabled]="disabled || readonly"
@@ -130,7 +130,7 @@
130130
[formControl]="inputControl"
131131
[matChipInputFor]="chipList"
132132
[attr.maxlength]="maxLength"
133-
[attr.aria-label]="placeholder"
133+
[attr.aria-label]="ariaLabel ?? placeholder"
134134
selectionLocation="end"
135135
autocomplete="off"
136136
aria-autocomplete="list"

projects/angular/components/ui-suggest/src/ui-suggest.mat-form-field.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ export abstract class UiSuggestMatFormFieldDirective implements
110110
@Input()
111111
shouldHideTitle = false;
112112

113+
/**
114+
* Sets aria-label on input or mat-chip-list element.
115+
*
116+
*/
117+
@Input('aria-label')
118+
ariaLabel: string | null = null;
119+
113120
/**
114121
* Set a custom size for the list items.
115122
*

projects/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uipath/angular",
3-
"version": "14.7.8",
3+
"version": "14.7.9",
44
"license": "MIT",
55
"author": {
66
"name": "UiPath Inc",

0 commit comments

Comments
 (0)