From deb6ec929f66458eaa784c7138df83e5a0e0a297 Mon Sep 17 00:00:00 2001 From: Vara Date: Mon, 12 Feb 2024 16:03:07 +0530 Subject: [PATCH] Fix issue with fonts in SiteGen customize sidebar --- .../Sidebar/components/Customize/DesignFontsPanel/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OnboardingSPA/components/Sidebar/components/Customize/DesignFontsPanel/index.js b/src/OnboardingSPA/components/Sidebar/components/Customize/DesignFontsPanel/index.js index e63a129f1..36918a739 100644 --- a/src/OnboardingSPA/components/Sidebar/components/Customize/DesignFontsPanel/index.js +++ b/src/OnboardingSPA/components/Sidebar/components/Customize/DesignFontsPanel/index.js @@ -293,8 +293,8 @@ const DesignFontsPanel = forwardRef( customFont; } } else { - headings = `var(--wp--preset--font-family--${ fontGroups[ selectedGroup ].headings })`; - body = `var(--wp--preset--font-family--${ fontGroups[ selectedGroup ].body })`; + headings = `var(--wp--preset--font-family--${ fontGroups[ selectedGroup ].headingsSlug })`; + body = `var(--wp--preset--font-family--${ fontGroups[ selectedGroup ].bodySlug })`; } setStylesOfCurrentData( headings, body ); };