Skip to content

Commit

Permalink
fix(core): insert theme stylesheet first to allow overriding (#4219) (#…
Browse files Browse the repository at this point in the history
…4220)

* fix(theme): insert theme stylesheet first to allow overriding (#4219)

* Update app-class.js

---------

Co-authored-by: Vladimir Kharlampidi <nolimits4web@gmail.com>
  • Loading branch information
peitschie and nolimits4web authored Sep 7, 2023
1 parent 541750a commit c02e90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/app/app-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class Framework7 extends Framework7Class {
const document = getDocument();
if (!app.colorsStyleEl) {
app.colorsStyleEl = document.createElement('style');
document.head.appendChild(app.colorsStyleEl);
document.head.prepend(app.colorsStyleEl);
}

app.colorsStyleEl.textContent = app.utils.colorThemeCSSStyles(app.colors);
Expand Down

0 comments on commit c02e90d

Please sign in to comment.