I've been attempting to customize my React component, but I'm experiencing some strange behavior that I can't quite wrap my head around.
<div className={classNames(scss[isOdd ? 'timeline-item-icon-odd'
: 'timeline-item-icon-even'], [inProgress])}>
When I check the DOM, it shows:
timeline-item-icon-odd___3K5am progress
Where "progress" comes from the variable "inProgress."
Initially, I thought this was the correct way to go about it, but it seems to only apply the first class and completely ignore the second one.
I even set up a simple HTML and CSS file to test my styles before applying them, and everything worked as expected there.
CSS:
.timeline-item-icon-odd {
background-color: gray;
border-color: gray;
}
.progress {
background-color: green !important;
border-color: green !important;
}
Ultimately, my goal is to have the background color adjust according to the "inProgress" variable.
If anyone has any insights or ideas, I would greatly appreciate it.
Thank you in advance!
Best Regards