(fix) Vote colors class names were backwards (yes was red, no was green).

This commit is contained in:
Gabriel Rodriguez Alsina 2018-08-13 15:29:25 -03:00
parent 60f80a4ba1
commit fd71035a52
3 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -14,14 +14,14 @@
height: 100%;
border-radius: 3px;
&_yes {
&_no {
background-color: $danger-color;
.sokol & {
background-color: $danger-color-sokol;
}
}
&_no {
&_yes {
background-color: $success-color;
.sokol & {
background-color: $success-color-sokol;

View File

@ -455,7 +455,7 @@ export class BallotCard extends React.Component {
<p className="vote-scale--percentage">{this.votesAgainstPercents}%</p>
<div className={voteScaleClass}>
<div
className="vote-scale--fill vote-scale--fill_yes"
className="vote-scale--fill vote-scale--fill_no"
style={{ width: `${this.votesAgainstPercents}%` }}
/>
</div>
@ -466,7 +466,7 @@ export class BallotCard extends React.Component {
<p className="vote-scale--votes">{this.votesForNumber} Votes</p>
<p className="vote-scale--percentage">{this.votesForPercents}%</p>
<div className={voteScaleClass}>
<div className="vote-scale--fill vote-scale--fill_no" style={{ width: `${this.votesForPercents}%` }} />
<div className="vote-scale--fill vote-scale--fill_yes" style={{ width: `${this.votesForPercents}%` }} />
</div>
</div>
<button