From 6760bc1bb0783fed3919c61e271a22490203e235 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Thu, 16 Mar 2023 18:55:44 +0000 Subject: [PATCH] Added `darkMode` passthrough to lexical editor closes https://github.com/TryGhost/Team/issues/2753 - dark mode styles are being added to our Lexical-based Koenig editor, this lets us test them inside of Admin --- ghost/admin/app/components/koenig-lexical-editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ghost/admin/app/components/koenig-lexical-editor.js b/ghost/admin/app/components/koenig-lexical-editor.js index 89ca731da4e2..818e543aca6b 100644 --- a/ghost/admin/app/components/koenig-lexical-editor.js +++ b/ghost/admin/app/components/koenig-lexical-editor.js @@ -120,6 +120,7 @@ const KoenigEditor = (props) => { export default class KoenigLexicalEditor extends Component { @service ajax; + @service feature; @inject config; @@ -354,6 +355,7 @@ export default class KoenigLexicalEditor extends Component { onChange={this.args.onChange} registerAPI={this.args.registerAPI} cursorDidExitAtTop={this.args.cursorDidExitAtTop} + darkMode={this.feature.nightShift} />