File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 3
3
<span class =" ui5-popup-frame" @focusin =" {{ _onfocusin }} " >
4
4
<span id =" {{ _id }} -firstfe" tabindex =" 0" ></span >
5
5
<div style =" {{ zindex }} " class =" ui5-dialog-root-parent {{ classes.dialogParent }} " >
6
- <div tabindex =" -1" aria-labelledby =" {{ headerId }} " role =" dialog" aria-modal =" true" class =" ui5-popup-root ui5-dialog-root {{ classes.dialogParent }} " >
6
+ <div tabindex =" -1" aria-labelledby =" {{ headerAriaLabelledBy }} " role =" dialog" aria-modal =" true" class =" ui5-popup-root ui5-dialog-root {{ classes.dialogParent }} " >
7
7
{{> header }}
8
8
<section class =" ui5-dialog-section" >
9
9
<div class =" ui5-popup-content" >
Original file line number Diff line number Diff line change @@ -140,6 +140,13 @@ class Dialog extends Popup {
140
140
get blockLayer ( ) {
141
141
return `z-index: ${ this . _zIndex } ;` ;
142
142
}
143
+
144
+ get headerAriaLabelledBy ( ) {
145
+ if ( this . headerText || this . header ) {
146
+ return `${ this . _id } -popup-heading` ;
147
+ }
148
+ return undefined ;
149
+ }
143
150
}
144
151
145
152
Dialog . define ( ) ;
Original file line number Diff line number Diff line change 2
2
{{ #if hasHeader }}
3
3
<header >
4
4
{{ #if header.length }}
5
- <div role =" {{ role }} " class =" ui5-popup-header" >
5
+ <div id = " {{ _id }} -popup-heading " role =" {{ role }} " class =" ui5-popup-header" >
6
6
<slot name =" header" ></slot >
7
7
</div >
8
8
{{ else }}
9
- <h2 role =" {{ role }} " class =" ui5-popup-header ui5-popup-headerText" >{{ headerText }} </h2 >
9
+ <h2 id = " {{ _id }} -popup-heading " role =" {{ role }} " class =" ui5-popup-header ui5-popup-headerText" >{{ headerText }} </h2 >
10
10
{{ /if }}
11
11
</header >
12
12
{{ /if }}
You can’t perform that action at this time.
0 commit comments