File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 13
13
{{ #if header.length }}
14
14
<slot slot =" header" name =" header" ></slot >
15
15
{{ else }}
16
- <header class =" {{ dialogClasses .header}} " >
16
+ <header class =" {{ classes .header}} " >
17
17
{{ #if headerText }}
18
18
<ui5-title level =" H2" class =" ui5-popup-header-text ui5-responsive-popover-header-text" >{{ headerText }} </ui5-title >
19
19
{{ /if }}
Original file line number Diff line number Diff line change @@ -90,13 +90,15 @@ class ResponsivePopover extends Popover {
90
90
return [ Popover . styles , ResponsivePopoverCss ] ;
91
91
}
92
92
93
- get dialogClasses ( ) {
94
- return {
95
- header : {
96
- "ui5-responsive-popover-header" : true ,
97
- "ui5-responsive-popover-header-no-title" : ! this . headerText ,
98
- }
99
- }
93
+ get classes ( ) {
94
+ const allClasses = super . classes ;
95
+
96
+ allClasses . header = {
97
+ "ui5-responsive-popover-header" : true ,
98
+ "ui5-responsive-popover-header-no-title" : ! this . headerText ,
99
+ } ;
100
+
101
+ return allClasses ;
100
102
}
101
103
102
104
static get template ( ) {
Original file line number Diff line number Diff line change @@ -130,11 +130,11 @@ <h2> Inputs based component that opens popover/dialog within dialog</h2>
130
130
} ) ;
131
131
132
132
btnSimpleRP . addEventListener ( "click" , function ( event ) {
133
- simpleRP . openBy ( btnSimpleRP ) ;
133
+ simpleRP . open ( btnSimpleRP ) ;
134
134
} ) ;
135
135
136
136
btnRpTopWithArrow . addEventListener ( "click" , function ( event ) {
137
- rpTopWithArrow . openBy ( btnRpTopWithArrow ) ;
137
+ rpTopWithArrow . open ( btnRpTopWithArrow ) ;
138
138
} ) ;
139
139
</ script >
140
140
</ body >
You can’t perform that action at this time.
0 commit comments