diff --git a/packages/main/src/Input.hbs b/packages/main/src/Input.hbs index bce64318d074..b084366abe42 100644 --- a/packages/main/src/Input.hbs +++ b/packages/main/src/Input.hbs @@ -24,6 +24,7 @@ aria-autocomplete="{{accInfo.input.ariaAutoComplete}}" aria-expanded="{{accInfo.input.ariaExpanded}}" aria-label="{{accInfo.input.ariaLabel}}" + aria-required="{{accInfo.input.ariaRequired}}" @input="{{_handleInput}}" @change="{{_handleChange}}" @keydown="{{_onkeydown}}" diff --git a/packages/main/src/Input.js b/packages/main/src/Input.js index e427f8ffdfe1..8834bfbcae78 100644 --- a/packages/main/src/Input.js +++ b/packages/main/src/Input.js @@ -1014,6 +1014,7 @@ class Input extends UI5Element { "ariaExpanded": this._inputAccInfo && this._inputAccInfo.ariaExpanded, "ariaDescription": this._inputAccInfo && this._inputAccInfo.ariaDescription, "ariaLabel": getEffectiveAriaLabelText(this), + "ariaRequired": (this._inputAccInfo && this._inputAccInfo.ariaRequired) || this.required, }, }; }