You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Themes such as wireframe that changes the default font will also change the font of children elements that have another data-theme that does not changes the default font.
For example, if you have this:
<div data-theme="wireframe">
<p>Hello</p>
<!-- this font will be serif, as expected from the theme "wireframe" -->
<p data-theme="dark">World</p>
<!-- this font will ALSO be serif, which is not expected for the theme "dark" -->
</div>
This seems to only occur when the parent data-theme has an explicit change to the default font, in other words, having a dark themed parent won't affect the wireframe themed children.
The text was updated successfully, but these errors were encountered:
Thank you @dlgiovani
for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I
find a solution.
In the meantime providing more details and reproduction links would be
helpful.
What version of daisyUI are you using?
v4.12.14
Which browsers are you seeing the problem on?
Chrome
Reproduction URL
https://play.tailwindcss.com/lRO0Xn8ZBy
Describe your issue
Problem:
Themes such as
wireframe
that changes the default font will also change the font of children elements that have anotherdata-theme
that does not changes the default font.For example, if you have this:
This seems to only occur when the parent
data-theme
has an explicit change to the default font, in other words, having adark
themed parent won't affect thewireframe
themed children.The text was updated successfully, but these errors were encountered: