Skip to content

Commit ef2d332

Browse files
fix(ui5-busyindicator): fix aria-labelledby value (#3266)
Fixes: #3256
1 parent 0a33c40 commit ef2d332

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/main/src/BusyIndicator.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
aria-valuemin="0"
99
aria-valuemax="100"
1010
aria-valuetext="Busy"
11-
aria-labelledby="{{_id}}-label"
11+
aria-labelledby="{{labelId}}"
1212
>
1313
<div class="ui5-busyindicator-circles-wrapper">
1414
<div class="ui5-busyindicator-circle circle-animation-0"></div>

packages/main/src/BusyIndicator.js

+4
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ class BusyIndicator extends UI5Element {
174174
return this.i18nBundle.getText(BUSY_INDICATOR_TITLE);
175175
}
176176

177+
get labelId() {
178+
return this.text ? `${this._id}-label` : undefined;
179+
}
180+
177181
get classes() {
178182
return {
179183
root: {

0 commit comments

Comments
 (0)