Commit 02028111 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

feat(conso): add cursor pointer on areas

parent 5a09943a
......@@ -175,7 +175,10 @@ const Bar = ({
return (
<g>
{height > 0 ? (
<g transform={`translate(${xScaleValue}, -40)`}>
<g
transform={`translate(${xScaleValue}, -40)`}
className="barContainer"
>
<rect
onClick={handleClick}
x="0"
......@@ -194,6 +197,7 @@ const Bar = ({
<g
transform={`translate(${xScaleValue}, ${yScaleValue})`}
fill="#00000"
className="barFill"
>
<defs>
<linearGradient
......
......@@ -21,8 +21,17 @@
fill: $grey-bright;
}
}
.barContainer,
.barFill {
&:hover {
cursor: pointer;
}
}
.background-true {
opacity: 0.1;
&:hover {
cursor: pointer;
}
}
.background-false {
opacity: 0;
......@@ -100,7 +109,7 @@
}
}
.bar-duel {
fill: $blue-light;
fill: $blue-light;
&.selected {
fill: $blue-light;
filter: drop-shadow(0 -0.1rem 0.2rem $blue-light);
......@@ -133,7 +142,7 @@
}
}
.bar-average {
stroke-width:2;
stroke-width: 2;
stroke: $multi-color;
}
/** Animation **/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment