I'm having trouble with a progress bar that I've been working on.
My goal is to have the progress bar change its background color to blue before it's set to the "active" class. However, currently, the change in color only happens after the class is set to "active."
Below is my HTML code:
<ul class="progressBar">
<li class="active">Processing Order</li>
<li class="active">Payment Pending</li>
<li>Payment Received</li>
</ul>
And here is the CSS code:
.progressBar li.active {
color: dodgerblue;
}
.progressBar li.active:before {
border-color: dodgerblue;
background-color: dodgerblue
}
.progressBar li.active + li:after {
background-color: dodgerblue;
}
Current Result:
https://i.sstatic.net/fC2qd.png
Desired Outcome: