From c02e90da66c284f16eae11bd01284b98e844047e Mon Sep 17 00:00:00 2001 From: Philip Peitsch Date: Thu, 7 Sep 2023 23:05:51 +1000 Subject: [PATCH] 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 --- src/core/components/app/app-class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/components/app/app-class.js b/src/core/components/app/app-class.js index e426cbb8f1..e728c8dc85 100644 --- a/src/core/components/app/app-class.js +++ b/src/core/components/app/app-class.js @@ -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);