mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
Fixed custom fonts not styled in select dropdown
This commit is contained in:
parent
162149a04d
commit
e6d63e0863
@ -52,9 +52,7 @@ const GlobalSettings: React.FC<{ values: GlobalSettingValues, updateSetting: (ke
|
||||
const [headingFont, setHeadingFont] = useState(values.headingFont || DEFAULT_FONT);
|
||||
const [bodyFont, setBodyFont] = useState(values.bodyFont || DEFAULT_FONT);
|
||||
|
||||
const fontClassName = (fontName: string, heading: boolean = true) => {
|
||||
return clsx(getCSSFriendlyFontClassName(fontName), heading && 'font-bold');
|
||||
};
|
||||
const fontClassName = (fontName: string, heading: boolean = true) => clsx(`font-${getCSSFriendlyFontClassName(fontName)}`, heading && 'font-bold');
|
||||
|
||||
// Populate the heading and body font options
|
||||
const customHeadingFonts: HeadingFontOption[] = CUSTOM_FONTS.heading.map((x) => {
|
||||
|
Loading…
Reference in New Issue
Block a user