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:
parent
c70775b873
commit
84dce24c55
1 changed files with 7 additions and 5 deletions
|
@ -23,12 +23,14 @@ const ThemePicker = ({ app, className }) => {
|
||||||
<li key={theme}>
|
<li key={theme}>
|
||||||
<button
|
<button
|
||||||
onClick={() => app.setTheme(theme)}
|
onClick={() => app.setTheme(theme)}
|
||||||
className="btn btn-ghost text-base-content hover:bg-base-200"
|
className="btn btn-ghost hover:bg-base-200"
|
||||||
>
|
>
|
||||||
|
<span className="text-base-content">
|
||||||
{app.i18n
|
{app.i18n
|
||||||
? app.t(`${theme}Theme`)
|
? app.t(`${theme}Theme`)
|
||||||
: `${theme} Theme`
|
: `${theme} Theme`
|
||||||
}
|
}
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue