Including font-sans in the bodyClass

This commit is contained in:
danidfra 2024-11-26 12:17:14 -03:00
parent b41f12f0a2
commit aeaa6322b8
1 changed files with 3 additions and 4 deletions

View File

@ -29,8 +29,9 @@ const SoapboxHead: React.FC<ISoapboxHead> = ({ children }) => {
'no-reduce-motion': !reduceMotion, 'no-reduce-motion': !reduceMotion,
'underline-links': underlineLinks, 'underline-links': underlineLinks,
'demetricator': demetricator, 'demetricator': demetricator,
'font-arabic': ['ar', 'fa'].includes(locale), 'font-sans': true,
'font-javanese': locale === 'jv', '!font-arabic': ['ar', 'fa'].includes(locale),
'!font-javanese': locale === 'jv',
}); });
useEffect(() => { useEffect(() => {
@ -49,8 +50,6 @@ const SoapboxHead: React.FC<ISoapboxHead> = ({ children }) => {
{themeCss && <style id='theme' type='text/css'>{`:root{${themeCss}}`}</style>} {themeCss && <style id='theme' type='text/css'>{`:root{${themeCss}}`}</style>}
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */} {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
{['dark', 'black'].includes(theme) && <style type='text/css'>{':root { color-scheme: dark; }'}</style>} {['dark', 'black'].includes(theme) && <style type='text/css'>{':root { color-scheme: dark; }'}</style>}
{/* eslint-disable formatjs/no-literal-string-in-jsx */}
{/* eslint-enable formatjs/no-literal-string-in-jsx */}
<meta name='theme-color' content={soapboxConfig.brandColor} /> <meta name='theme-color' content={soapboxConfig.brandColor} />
</Helmet> </Helmet>