1
0
Fork 0

fix(dev): Force color of theme picker. Closes #1814

This is a bit of a hack because I can't seem to get to the
root cause, so this just adds CSS specificity so that the
dropdown is styled as it should.
This commit is contained in:
Joost De Cock 2022-02-05 22:01:01 +01:00
parent c70775b873
commit 84dce24c55

View file

@ -23,12 +23,14 @@ const ThemePicker = ({ app, className }) => {
<li key={theme}>
<button
onClick={() => app.setTheme(theme)}
className="btn btn-ghost text-base-content hover:bg-base-200"
className="btn btn-ghost hover:bg-base-200"
>
{app.i18n
? app.t(`${theme}Theme`)
: `${theme} Theme`
}
<span className="text-base-content">
{app.i18n
? app.t(`${theme}Theme`)
: `${theme} Theme`
}
</span>
</button>
</li>
))}