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
If I override bg-primary by another custom class bg-secondary it works.
If I override bg-primary by bg-red-500, it doesn't work. The class is present into class attribute but the bg stays the same.
If I replace bg-primary by bg-red-500 in my component and I override by a custom class bg-primary, it works.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone!
I'm stuck when I'm trying to override a custom class (bg-primary) added into tailwind.config.js by another Tailwind class (bg-red-500).
If I override
bg-primary
by another custom classbg-secondary
it works.If I override
bg-primary
bybg-red-500
, it doesn't work. The class is present into class attribute but the bg stays the same.If I replace
bg-primary
bybg-red-500
in my component and I override by a custom classbg-primary
, it works.My child component looks like that:
My parent component looks like that:
Do you have any idea to solve my problem ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions