Skip to content

Commit

Permalink
Merge pull request #407 from newfold-labs/hotfix/orchid-fonts
Browse files Browse the repository at this point in the history
Fix fonts for orchid shades and correct typography step issues
  • Loading branch information
arunshenoy99 authored Jan 11, 2024
2 parents 0ee2224 + 5b6bd47 commit f8dc208
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/OnboardingSPA/components/App/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const App = () => {
function handleConditionalDesignStepsRoutes() {
if (
location?.pathname.includes( 'colors' ) ||
location?.pathname.includes( 'fonts' )
location?.pathname.includes( 'typography' )
) {
const updates = injectInAllSteps(
allSteps,
Expand Down
16 changes: 8 additions & 8 deletions src/OnboardingSPA/components/Drawer/DrawerPanel/DesignFonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,17 @@ const DesignFonts = () => {

if (
globalStylesCopy?.styles?.typography?.fontFamily &&
globalStylesCopy?.styles?.blocks[ 'core/heading' ]?.typography
?.fontFamily
globalStylesCopy?.styles?.blocks[ 'core/heading' ]
) {
globalStylesCopy.styles.typography.fontFamily =
fontPalettesCopy[ fontStyle ]?.styles?.typography?.fontFamily;
globalStylesCopy.styles.blocks[
'core/heading'
].typography.fontFamily =
fontPalettesCopy[ fontStyle ]?.styles.blocks[
'core/heading'
].typography.fontFamily;
globalStylesCopy.styles.blocks[ 'core/heading' ] = {
...globalStylesCopy.styles.blocks[ 'core/heading' ],
typography:
fontPalettesCopy[ fontStyle ]?.styles.blocks[
'core/heading'
].typography,
};
}

if (
Expand Down

0 comments on commit f8dc208

Please sign in to comment.