Skip to content

Commit

Permalink
fix site title and site tagline fonts for the gold shades
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Jan 17, 2023
1 parent c18ca96 commit 17eb609
Showing 1 changed file with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,29 @@ const DesignTypography = () => {
fontPalettesCopy[ fontStyle ]?.styles.blocks[
'core/heading'
].typography.fontFamily;
if (
globalStylesCopy.styles?.blocks[ 'core/site-title' ]?.typography
.fontFamily
) {
globalStylesCopy.styles.blocks[
'core/site-title'
].typography.fontFamily =
fontPalettesCopy[ fontStyle ]?.styles.blocks[
'core/heading'
].typography.fontFamily;
}

if (
globalStylesCopy.styles?.blocks[ 'core/site-tagline' ]?.typography
.fontFamily
) {
globalStylesCopy.styles.blocks[
'core/site-tagline'
].typography.fontFamily =
fontPalettesCopy[ fontStyle ]?.styles.blocks[
'core/heading'
].typography.fontFamily;
}

// Saves the data to the Store
currentData.data.typography.slug = fontStyle;
Expand Down Expand Up @@ -188,7 +211,7 @@ const DesignTypography = () => {
</div>
} */ }
{ fontPalettes && buildPalettes() }
{/* { fontPalettes && buildCustomPalette() } */}
{ /* { fontPalettes && buildCustomPalette() } */ }
<div className="custom-font-palette--hidden">{ rerender }</div>
</div>
</GlobalStylesProvider>
Expand Down

0 comments on commit 17eb609

Please sign in to comment.