Skip to content

Commit 9199825

Browse files
authored
fix(framework): improve CSS variables from OpenUI5 detection (#12177)
1 parent 060af95 commit 9199825

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/base/src/features/OpenUI5Support.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ class OpenUI5Support {
226226
return false;
227227
}
228228

229-
return !!link.href.match(/\/css(-|_)variables\.css/);
229+
// The file name is "css_variables.css" until 1.127 and "library.css" from 1.127 onwards
230+
return !!link.href.match(/\/css(-|_)variables\.css/) || !!link.href.match(/\/library\.css/);
230231
}
231232

232233
static addOpenedPopup(popup: object) {

packages/main/test/pages/Kitchen.openui5.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
src='https://sdk.openui5.org/resources/sap-ui-core.js'
2121
id='sap-ui-bootstrap'
2222
data-sap-ui-libs="sap.m"
23-
data-sap-ui-theme="sap_horizon"
23+
data-sap-ui-theme="sap_horizon_dark"
2424
></script>
2525
<script>
2626
sap.ui.getCore().attachInit(function () {

0 commit comments

Comments
 (0)