@@ -18,7 +18,7 @@ import {
18
18
import { isPhone , isIE } from "@ui5/webcomponents-base/dist/Device.js" ;
19
19
import "@ui5/webcomponents-icons/dist/appointment-2.js" ;
20
20
import "@ui5/webcomponents-icons/dist/decline.js" ;
21
- import { DATEPICKER_OPEN_ICON_TITLE , DATEPICKER_DATE_ACC_TEXT , INPUT_SUGGESTIONS_TITLE } from "./generated/i18n/i18n-defaults.js" ;
21
+ import { DATEPICKER_OPEN_ICON_TITLE , DATEPICKER_DATE_DESCRIPTION , INPUT_SUGGESTIONS_TITLE } from "./generated/i18n/i18n-defaults.js" ;
22
22
import DateComponentBase from "./DateComponentBase.js" ;
23
23
import Icon from "./Icon.js" ;
24
24
import Button from "./Button.js" ;
@@ -590,13 +590,13 @@ class DatePicker extends DateComponentBase {
590
590
591
591
get accInfo ( ) {
592
592
return {
593
- "ariaDescribedBy " : ` ${ this . _id } -date` ,
593
+ "ariaRoledescription " : this . dateAriaDescription ,
594
594
"ariaHasPopup" : "true" ,
595
595
"ariaAutoComplete" : "none" ,
596
596
"role" : "combobox" ,
597
597
"ariaOwns" : `${ this . _id } -responsive-popover` ,
598
598
"ariaExpanded" : this . isOpen ( ) ,
599
- "ariaDescription " : this . dateAriaDescription ,
599
+ "ariaRequired " : this . required ,
600
600
"ariaLabel" : getEffectiveAriaLabelText ( this ) ,
601
601
} ;
602
602
}
@@ -610,7 +610,7 @@ class DatePicker extends DateComponentBase {
610
610
}
611
611
612
612
get dateAriaDescription ( ) {
613
- return this . i18nBundle . getText ( DATEPICKER_DATE_ACC_TEXT ) ;
613
+ return this . i18nBundle . getText ( DATEPICKER_DATE_DESCRIPTION ) ;
614
614
}
615
615
616
616
/**
0 commit comments