File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
- <div class =" ui5-uc-root" @drop =" {{ _ondrop }} " >
1
+ <div
2
+ class =" ui5-uc-root"
3
+ role =" region"
4
+ aria-roledescription =" {{ _roleDescription }} "
5
+ @drop =" {{ _ondrop }} " >
2
6
<div class =" ui5-uc-header" >
3
7
<slot name =" header" ></slot >
4
8
</div >
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
UPLOADCOLLECTION_NO_DATA_DESCRIPTION ,
14
14
UPLOADCOLLECTION_DRAG_FILE_INDICATOR ,
15
15
UPLOADCOLLECTION_DROP_FILE_INDICATOR ,
16
+ UPLOADCOLLECTION_ARIA_ROLE_DESCRIPTION ,
16
17
} from "./generated/i18n/i18n-defaults.js" ;
17
18
import {
18
19
attachBodyDnDHandler ,
@@ -331,6 +332,10 @@ class UploadCollection extends UI5Element {
331
332
return this . noDataDescription || this . i18nBundle . getText ( UPLOADCOLLECTION_NO_DATA_DESCRIPTION ) ;
332
333
}
333
334
335
+ get _roleDescription ( ) {
336
+ return this . i18nBundle . getText ( UPLOADCOLLECTION_ARIA_ROLE_DESCRIPTION ) ;
337
+ }
338
+
334
339
get _dndOverlayText ( ) {
335
340
if ( this . _dndOverlayMode === UploadCollectionDnDOverlayMode . Drag ) {
336
341
return this . i18nBundle . getText ( UPLOADCOLLECTION_DRAG_FILE_INDICATOR ) ;
Original file line number Diff line number Diff line change @@ -96,6 +96,9 @@ UPLOADCOLLECTION_NO_DATA_TEXT=No files found.
96
96
# XMSG: Message text for no data description in the UploadCollection
97
97
UPLOADCOLLECTION_NO_DATA_DESCRIPTION =Drop files to upload, or use the Upload button.
98
98
99
+ # XACT: ARIA announcement for the ettribute 'aria-roledescription' of the UploadCollection component
100
+ UPLOADCOLLECTION_ARIA_ROLE_DESCRIPTION =Upload collection
101
+
99
102
# XMSG: Message text indicating where to drag
100
103
UPLOADCOLLECTION_DRAG_FILE_INDICATOR =Drag files here
101
104
You can’t perform that action at this time.
0 commit comments