Skip to content

Commit c02e90d

Browse files
fix(core): insert theme stylesheet first to allow overriding (#4219) (#4220)
* fix(theme): insert theme stylesheet first to allow overriding (#4219) * Update app-class.js --------- Co-authored-by: Vladimir Kharlampidi <[email protected]>
1 parent 541750a commit c02e90d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/app/app-class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class Framework7 extends Framework7Class {
138138
const document = getDocument();
139139
if (!app.colorsStyleEl) {
140140
app.colorsStyleEl = document.createElement('style');
141-
document.head.appendChild(app.colorsStyleEl);
141+
document.head.prepend(app.colorsStyleEl);
142142
}
143143

144144
app.colorsStyleEl.textContent = app.utils.colorThemeCSSStyles(app.colors);

0 commit comments

Comments
 (0)