File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ [data-sap-ui-popup ][popover ] {
2
+ border : none;
3
+ overflow : visible;
4
+ margin : 0 ;
5
+ }
Original file line number Diff line number Diff line change
1
+ import { hasStyle , createStyle } from "../ManagedStyles.js" ;
2
+ import openUI5PopupStyles from "../generated/css/OpenUI5PopupStyles.css.js" ;
3
+
4
+ const insertOpenUI5PopupStyles = ( ) => {
5
+ if ( ! hasStyle ( "data-ui5-popup-styles" ) ) {
6
+ createStyle ( openUI5PopupStyles , "data-ui5-popup-styles" ) ;
7
+ }
8
+ } ;
9
+
10
+ export default insertOpenUI5PopupStyles ;
Original file line number Diff line number Diff line change 1
1
// OpenUI5's Control.js subset
2
2
import getSharedResource from "../getSharedResource.js" ;
3
+ import insertOpenUI5PopupStyles from "./insertOpenUI5PopupStyles.js" ;
3
4
4
5
type Control = {
5
6
getDomRef : ( ) => HTMLElement | null ,
@@ -137,6 +138,7 @@ const createGlobalStyles = () => {
137
138
} ;
138
139
139
140
const patchPopup = ( Popup : OpenUI5Popup ) => {
141
+ insertOpenUI5PopupStyles ( ) ;
140
142
patchOpen ( Popup ) ; // Popup.prototype.open
141
143
patchClosed ( Popup ) ; // Popup.prototype._closed
142
144
createGlobalStyles ( ) ; // Ensures correct popover positioning by OpenUI5 (otherwise 0,0 is the center of the screen)
You can’t perform that action at this time.
0 commit comments