File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 3
3
aria-label =" {{ accInfo.label }} "
4
4
role =" toolbar"
5
5
part =" bar"
6
+ dir ={{ effectiveDir }}
6
7
>
7
8
<div class =" ui5-bar-content-container ui5-bar-startcontent-container" >
8
9
<slot name =" startContent" ></slot >
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ const metadata = {
54
54
*/
55
55
startContent : {
56
56
type : HTMLElement ,
57
+ propertyName : "startContent" ,
57
58
} ,
58
59
59
60
/**
@@ -75,6 +76,7 @@ const metadata = {
75
76
*/
76
77
endContent : {
77
78
type : HTMLElement ,
79
+ propertyName : "endContent" ,
78
80
} ,
79
81
} ,
80
82
events : /** @lends sap.ui.webcomponents.fiori.Bar.prototype */ {
@@ -168,6 +170,12 @@ class Bar extends UI5Element {
168
170
} ;
169
171
}
170
172
173
+ onBeforeRendering ( ) {
174
+ // Next two row is specific for IE11. Please remove after stop support and edit css file
175
+ const content = this . startContent . concat ( this . middleContent ) . concat ( this . endContent ) ;
176
+ content . forEach ( e => e . classList . add ( "ui5-bar-content" ) ) ;
177
+ }
178
+
171
179
onEnterDOM ( ) {
172
180
ResizeHandler . register ( this , this . _handleResizeBound ) ;
173
181
}
Original file line number Diff line number Diff line change 66
66
box-shadow : var (--sapContent_Shadow1 );
67
67
border : none;
68
68
}
69
+ /* This selector works well for all browsers except IE11.
70
+ After support for IE11 is stopped, the specific selectors added for it can be removed and this selector can be uncommented*/
71
+ /* ::slotted(*) {
72
+ margin: 0 0.25rem;
73
+ } */
69
74
70
- ::slotted (* ){
75
+ /*Specific selector added for support in IE11*/
76
+ ::slotted (.ui5-bar-content ) {
71
77
margin : 0 0.25rem ;
78
+ }
79
+
80
+ [dir = "rtl" ] .ui5-bar-startcontent-container {
81
+ padding-right : 0.5rem ;
82
+ padding-left : 0 ;
83
+ }
84
+
85
+ [dir = "rtl" ] .ui5-bar-endcontent-container {
86
+ padding-left : 0.5rem ;
87
+ padding-right : 0 ;
72
88
}
You can’t perform that action at this time.
0 commit comments