File tree 5 files changed +39
-2
lines changed
5 files changed +39
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,18 @@ const metadata = {
23
23
} ,
24
24
} ,
25
25
properties : /** @lends sap.ui.webcomponents.main.CustomListItem.prototype */ {
26
+ /**
27
+ * Defines the text alternative of the component.
28
+ * Note: If not provided a default text alternative will be set, if present.
29
+ *
30
+ * @type {string }
31
+ * @defaultvalue ""
32
+ * @public
33
+ * @since 1.0.0-rc.15
34
+ */
35
+ accessibleName : {
36
+ type : String ,
37
+ } ,
26
38
} ,
27
39
} ;
28
40
Original file line number Diff line number Diff line change 7
7
role =" option"
8
8
style =" list-style-type: none;"
9
9
>
10
- <span class =" ui5-hidden-text" >{{ groupHeaderText }} </span >
10
+ <span class =" ui5-hidden-text" >{{ groupHeaderText }} {{ accessibleName }} </span >
11
11
12
12
<div id =" {{ _id }} -content" class =" ui5-li-content" >
13
13
<span class =" ui5-ghli-title" ><slot ></slot ></span >
Original file line number Diff line number Diff line change @@ -16,6 +16,18 @@ const metadata = {
16
16
tag : "ui5-li-groupheader" ,
17
17
languageAware : true ,
18
18
properties : /** @lends sap.ui.webcomponents.main.GroupHeaderListItem.prototype */ {
19
+ /**
20
+ * Defines the text alternative of the component.
21
+ * Note: If not provided a default text alternative will be set, if present.
22
+ *
23
+ * @type {string }
24
+ * @defaultvalue ""
25
+ * @public
26
+ * @since 1.0.0-rc.15
27
+ */
28
+ accessibleName : {
29
+ type : String ,
30
+ } ,
19
31
} ,
20
32
slots : /** @lends sap.ui.webcomponents.main.GroupHeaderListItem.prototype */ {
21
33
/**
Original file line number Diff line number Diff line change 48
48
{{> selectionElement }}
49
49
{{ /if }}
50
50
51
- <span id =" {{ _id }} -invisibleText" class =" ui5-hidden-text" >{{ _accInfo.listItemAriaLabel }} </span >
51
+ <span id =" {{ _id }} -invisibleText" class =" ui5-hidden-text" >{{ _accInfo.listItemAriaLabel }} {{ accessibleName }} </span >
52
52
</li >
53
53
54
54
{{ #*inline " listItemPreContent" }} {{ /inline }}
Original file line number Diff line number Diff line change @@ -85,6 +85,19 @@ const metadata = {
85
85
defaultValue : ValueState . None ,
86
86
} ,
87
87
88
+ /**
89
+ * Defines the text alternative of the component.
90
+ * Note: If not provided a default text alternative will be set, if present.
91
+ *
92
+ * @type {string }
93
+ * @defaultvalue ""
94
+ * @public
95
+ * @since 1.0.0-rc.15
96
+ */
97
+ accessibleName : {
98
+ type : String ,
99
+ } ,
100
+
88
101
/**
89
102
* Indicates if the list item has text content.
90
103
* @type {boolean }
You can’t perform that action at this time.
0 commit comments