Status Bar Active Element Highlighted
This commit is contained in:
@@ -6,12 +6,15 @@ export default function StatusBar(p)
|
|||||||
let classNames = ["not-started", "started", "finished"];
|
let classNames = ["not-started", "started", "finished"];
|
||||||
let index = p.progress / 50;
|
let index = p.progress / 50;
|
||||||
|
|
||||||
|
let actives = ["", "", ""]
|
||||||
|
actives[index] = "active";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={"step-container"}>
|
<div className={"step-container"}>
|
||||||
<div className={"steps"}>
|
<div className={"steps"}>
|
||||||
<span className={"step " + classNames[index]}>1</span>
|
<span className={"step " + classNames[index] + " " + actives[0]}>1</span>
|
||||||
<span className={"step " + classNames[index]}>2</span>
|
<span className={"step " + classNames[index] + " " + actives[1]}>2</span>
|
||||||
<span className={"step " + classNames[index]}>3</span>
|
<span className={"step " + classNames[index] + " " + actives[2]}>3</span>
|
||||||
<div className={"progress-bar " + classNames[index]}
|
<div className={"progress-bar " + classNames[index]}
|
||||||
style={{
|
style={{
|
||||||
width: p.progress + "%"
|
width: p.progress + "%"
|
||||||
|
|||||||
@@ -111,6 +111,12 @@ Step Progress Bar
|
|||||||
background-image: linear-gradient(#43C20BFF, #0bc27c);
|
background-image: linear-gradient(#43C20BFF, #0bc27c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.steps .active
|
||||||
|
{
|
||||||
|
border-width: 3px;
|
||||||
|
border-color: #1e2428;
|
||||||
|
}
|
||||||
|
|
||||||
.progress-bar
|
.progress-bar
|
||||||
{
|
{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
Reference in New Issue
Block a user