From 2d29f0f042566bf6968e0af6dac5b259a866ea8a Mon Sep 17 00:00:00 2001 From: Nicolas Caluori <52490746+Nicicalu@users.noreply.github.com> Date: Fri, 2 Sep 2022 10:05:09 +0200 Subject: [PATCH] Content is displayed wrongly when printing / Save as PDF (#4043) --- app/editor/components/Styles.ts | 1 + app/styles/globals.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/editor/components/Styles.ts b/app/editor/components/Styles.ts index b17a7bd94..0153cc978 100644 --- a/app/editor/components/Styles.ts +++ b/app/editor/components/Styles.ts @@ -1275,6 +1275,7 @@ const EditorStyles = styled.div<{ .placeholder:before, .block-menu-trigger, .heading-actions, + button.show-source-button, h1:not(.placeholder):before, h2:not(.placeholder):before, h3:not(.placeholder):before, diff --git a/app/styles/globals.ts b/app/styles/globals.ts index 878c4c337..0fdf6cbec 100644 --- a/app/styles/globals.ts +++ b/app/styles/globals.ts @@ -15,6 +15,8 @@ export default createGlobalStyle` min-height: 100vh; margin: 0; padding: 0; + print-color-adjust: exact; + -webkit-print-color-adjust: exact; } body,