We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61ce284 commit d9933bdCopy full SHA for d9933bd
packages/main/src/CalendarHeader.hbs
@@ -51,5 +51,5 @@
51
name="{{_btnNext.icon}}"
52
>
53
</ui5-icon>
54
-
+ </div>
55
</div>
packages/main/src/Icon.hbs
@@ -3,7 +3,7 @@
3
tabindex="{{tabIndex}}"
4
dir="{{dir}}"
5
viewBox="0 0 512 512"
6
- role="img"
+ role="{{role}}"
7
focusable="false"
8
preserveAspectRatio="xMidYMid meet"
9
aria-label="{{accessibleNameText}}"
packages/main/src/Icon.js
@@ -198,6 +198,14 @@ class Icon extends UI5Element {
198
return this.interactive ? "0" : "-1";
199
}
200
201
+ get role() {
202
+ if (this.interactive) {
203
+ return "button";
204
+ }
205
+
206
+ return this.accessibleNameText ? "img" : "presentation";
207
208
209
static createGlobalStyle() {
210
if (!window.ShadyDOM) {
211
return;
0 commit comments