Merge branch 'set-color-scheme-css' into 'develop'
Add 'color-scheme' CSS prop for better browser rendering See merge request soapbox-pub/soapbox-fe!1486
This commit is contained in:
commit
1d2c07f0a9
1 changed files with 1 additions and 0 deletions
|
@ -141,6 +141,7 @@ const SoapboxMount = () => {
|
||||||
<html lang={locale} className={classNames('h-full', { dark: darkMode })} />
|
<html lang={locale} className={classNames('h-full', { dark: darkMode })} />
|
||||||
<body className={bodyClass} />
|
<body className={bodyClass} />
|
||||||
{themeCss && <style id='theme' type='text/css'>{`:root{${themeCss}}`}</style>}
|
{themeCss && <style id='theme' type='text/css'>{`:root{${themeCss}}`}</style>}
|
||||||
|
{darkMode && <style type='text/css'>{':root { color-scheme: dark; }'}</style>}
|
||||||
<meta name='theme-color' content={soapboxConfig.brandColor} />
|
<meta name='theme-color' content={soapboxConfig.brandColor} />
|
||||||
</Helmet>
|
</Helmet>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue