From 265d6058f2033f1ed3ddcca9f8ebe5b4a4f6bc5f Mon Sep 17 00:00:00 2001 From: Rishabh Date: Wed, 13 Jul 2022 07:36:47 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20internal=20css=20leaking?= =?UTF-8?q?=20outside=20for=20search?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs https://github.com/TryGhost/Team/issues/1675 closes https://github.com/TryGhost/Ghost/issues/15020 - the main css file used for search was accidentally imported in the root js script, causing it to be included alongside the final minified bundle and get injected outside the iframe. - the main css is pushed as a separate file outside of bundle and used directly as link inside the iframe instead --- ghost/sodo-search/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/sodo-search/src/index.js b/ghost/sodo-search/src/index.js index 977a3daa86..80d0c0595d 100644 --- a/ghost/sodo-search/src/index.js +++ b/ghost/sodo-search/src/index.js @@ -1,6 +1,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import './index.css'; + import App from './App'; const ROOT_DIV_ID = 'sodo-search-root';