File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -307,17 +307,17 @@ const DesignFontsPanel = forwardRef(
307
307
let body ;
308
308
const slug = currentData . sitegen ?. homepages ?. active ?. slug ;
309
309
if ( selectedGroup === 'custom' ) {
310
- headings = `var(--wp--preset--font-family--${ customFont . headings } )` ;
311
- body = `var(--wp--preset--font-family--${ customFont . body } )` ;
310
+ headings = `var(--wp--preset--font-family--${ customFont . headings ?. toLowerCase ( ) } )` ;
311
+ body = `var(--wp--preset--font-family--${ customFont . body ?. toLowerCase ( ) } )` ;
312
312
if ( slug ) {
313
313
currentData . sitegen . homepages . data [ slug ] . customFont =
314
314
customFont ;
315
315
currentData . sitegen . homepages . active . customFont =
316
316
customFont ;
317
317
}
318
318
} else {
319
- headings = `var(--wp--preset--font-family--${ fontGroups [ selectedGroup ] . headingsSlug } )` ;
320
- body = `var(--wp--preset--font-family--${ fontGroups [ selectedGroup ] . bodySlug } )` ;
319
+ headings = `var(--wp--preset--font-family--${ fontGroups [ selectedGroup ] . headingsSlug ?. toLowerCase ( ) } )` ;
320
+ body = `var(--wp--preset--font-family--${ fontGroups [ selectedGroup ] . bodySlug ?. toLowerCase ( ) } )` ;
321
321
}
322
322
currentData . sitegen . homepages . data [ slug ] . selectedFontGroup =
323
323
selectedGroup ;
You can’t perform that action at this time.
0 commit comments