if (value != null) {
const numberValue = Number(value);
data = [
- { value: numberValue, fill: muted ? colors.gray71 : colors.green },
- { value: FULL_PERCENT - numberValue, fill: muted ? 'transparent' : colors.lineCoverageRed }
+ { value: numberValue, fill: muted ? colors.gray71 : colors.success500 },
+ { value: FULL_PERCENT - numberValue, fill: muted ? 'transparent' : colors.error500 }
];
if (numberValue !== 0 && numberValue < FULL_PERCENT) {
padAngle = 0.1; // Same for all sizes, because it scales automatically
}
.duplications-rating-A {
- border-color: var(--green);
+ border-color: var(--success500);
}
.duplications-rating-A:after {
}
.duplications-rating-B {
- border-color: var(--lightGreen);
+ border-color: var(--successVariant);
}
.duplications-rating-B:after {
width: 6px;
height: 6px;
- background-color: var(--lightGreen);
+ background-color: var(--successVariant);
}
.duplications-rating-small.duplications-rating-B:after {
}
.duplications-rating-C {
- border-color: var(--yellow);
+ border-color: var(--warningVariant);
}
.duplications-rating-C:after {
width: 8px;
height: 8px;
- background-color: var(--yellow);
+ background-color: var(--warningVariant);
}
.duplications-rating-small.duplications-rating-C:after {
}
.duplications-rating-D {
- border-color: var(--orange);
+ border-color: var(--warningAccent);
}
.duplications-rating-D:after {
width: var(--smallFontSize);
height: var(--smallFontSize);
- background-color: var(--orange);
+ background-color: var(--warningAccent);
}
.duplications-rating-small.duplications-rating-D:after {
}
.duplications-rating-E {
- border-color: var(--red);
+ border-color: var(--error500);
}
.duplications-rating-E:after {
width: 14px;
height: 14px;
- background-color: var(--red);
+ background-color: var(--error500);
}
.duplications-rating-small.duplications-rating-E:after {