Skip to content

Commit 1c8381d

Browse files
feat(combobox-web): add ariaLabel property for improved accessibility
1 parent 1ad0f4b commit 1c8381d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/pluggableWidgets/combobox-web/src/Combobox.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,14 @@
339339
</property>
340340
</propertyGroup>
341341
<propertyGroup caption="Aria labels">
342+
<property key="ariaLabel" type="textTemplate" required="false">
343+
<caption>Aria label</caption>
344+
<description>Used to describe the combo box.</description>
345+
<translations>
346+
<translation lang="en_US">Combo box</translation>
347+
<translation lang="nl_NL">Keuzelijst</translation>
348+
</translations>
349+
</property>
342350
<property key="clearButtonAriaLabel" type="textTemplate" required="false">
343351
<caption>Clear selection button</caption>
344352
<description>Used to clear all selected values.</description>

packages/pluggableWidgets/combobox-web/typings/ComboboxProps.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export interface ComboboxContainerProps {
9090
onEnterEvent?: ActionValue;
9191
onLeaveEvent?: ActionValue;
9292
ariaRequired: DynamicValue<boolean>;
93+
ariaLabel?: DynamicValue<string>;
9394
clearButtonAriaLabel?: DynamicValue<string>;
9495
removeValueAriaLabel?: DynamicValue<string>;
9596
a11ySelectedValue?: DynamicValue<string>;
@@ -145,6 +146,7 @@ export interface ComboboxPreviewProps {
145146
onEnterEvent: {} | null;
146147
onLeaveEvent: {} | null;
147148
ariaRequired: string;
149+
ariaLabel: string;
148150
clearButtonAriaLabel: string;
149151
removeValueAriaLabel: string;
150152
a11ySelectedValue: string;

0 commit comments

Comments
 (0)