info400: '#4B9FD5',
info500: '#0271B9',
- success500: '#008A25',
+ success300: '#6CD46C',
+ success300a20: 'rgba(108, 212, 108, 0.2)',
+ success500: '#008223',
success500a20: 'rgba(0, 138, 37, 0.20)',
- successVariant: '#B0D513',
- successVarianta20: 'rgba(177, 213, 19, 0.20)',
+ successVariant: '#C6E056',
+ successVarianta20: 'rgba(198, 224, 86, 0.2)',
successVariantDark: '#809E00',
warning: '#B95E04',
- warningVariant: '#EABE06',
- warningVarianta20: 'rgba(234, 188, 6, 0.20)',
+ warningVariant: '#F4D348',
+ warningVarianta20: 'rgba(244, 211, 72, 0.2)',
warningVariantDark: '#B18F00',
- warningAccent: '#ED7D20',
- warningAccenta20: 'rgba(237, 124, 32, 0.20)',
+ warningAccent: '#F69D53',
+ warningAccenta20: 'rgba(246, 157, 83, 0.2)',
+ error400: '#F0878E',
+ error400a20: 'rgba(240, 135, 142, 0.2)',
error500: '#D02F3A',
error500a20: 'rgba(208, 47, 58, 0.20)',
+ error700: '#B81723',
neutral50: '#F3F3F3',
neutral200: '#CCCCCC',
black: '#000000',
blacka38: 'rgba(0, 0, 0, 0.38)',
blacka60: 'rgba(0, 0, 0, 0.60)',
+ blacka75: 'rgba(0, 0, 0, 0.75)',
blacka87: 'rgba(0, 0, 0, 0.87)'
},
Array [
Object {
"color": Object {
- "fill": "#B0D513",
- "fillTransparent": "rgba(177, 213, 19, 0.20)",
- "stroke": "#B0D513",
+ "fill": "#C6E056",
+ "fillTransparent": "rgba(198, 224, 86, 0.2)",
+ "stroke": "#809E00",
},
"data": Object {
"key": "foo:src/index.tsx",
Array [
Object {
"color": Object {
- "fill": "#B0D513",
- "fillTransparent": "rgba(177, 213, 19, 0.20)",
- "stroke": "#B0D513",
+ "fill": "#C6E056",
+ "fillTransparent": "rgba(198, 224, 86, 0.2)",
+ "stroke": "#809E00",
},
"data": Object {
"key": "foo:src/index.tsx",
}
.overview-quality-gate-badge-large.failed {
- background: var(--red);
+ background: var(--error700);
}
.overview-quality-gate-badge-large.success {
}
export default function DonutChart(props: DonutChartProps) {
- const { height, padding = [0, 0, 0, 0], width } = props;
+ const { height, padding = [0, 0, 0, 0], width, padAngle, data, thickness } = props;
const availableWidth = width - padding[1] - padding[3];
const availableHeight = height - padding[0] - padding[2];
.sort(null)
.value(d => d.value);
- if (props.padAngle !== undefined) {
- pie.padAngle(props.padAngle);
+ if (padAngle !== undefined) {
+ pie.padAngle(padAngle);
}
- const sectors = pie(props.data).map((d, i) => {
+ const sectors = pie(data).map((d, i) => {
return (
<Sector
data={d}
- fill={props.data[i].fill}
+ fill={data[i].fill}
// eslint-disable-next-line react/no-array-index-key
key={i}
radius={radius}
- thickness={props.thickness}
+ thickness={thickness}
/>
);
});
padding-left: 9px;
padding-right: 9px;
height: var(--controlHeight);
- border: 1px solid var(--blacka38);
border-radius: var(--controlHeight);
box-sizing: border-box;
color: #fff;
}
.level-ERROR {
- background-color: var(--error500);
+ background-color: var(--error700);
}
.level-NONE {
width: var(--controlHeight);
height: var(--controlHeight);
border-radius: var(--controlHeight);
- border: 1px solid var(--blacka38);
box-sizing: border-box;
font-size: var(--bigFontSize);
font-weight: 400;
a > .rating-A,
.rating-A {
- color: var(--white);
- background-color: var(--success500);
+ color: var(--blacka75);
+ background-color: var(--success300);
}
a > .rating-B,
.rating-B {
- color: var(--blacka87);
+ color: var(--blacka75);
background-color: var(--successVariant);
}
a > .rating-C,
.rating-C {
- color: var(--blacka87);
+ color: var(--blacka75);
background-color: var(--warningVariant);
}
a > .rating-D,
.rating-D {
- color: var(--blacka87);
+ color: var(--blacka75);
background-color: var(--warningAccent);
}
a > .rating-E,
.rating-E {
- color: var(--white);
- background-color: var(--error500);
+ color: var(--blacka75);
+ background-color: var(--error400);
}
data={
Array [
Object {
- "fill": "#008A25",
+ "fill": "#008223",
"value": 25,
},
Object {
export const RULE_STATUSES = ['READY', 'BETA', 'DEPRECATED'];
export const RATING_COLORS = [
- { fill: colors.success500, fillTransparent: colors.success500a20, stroke: colors.success500 },
+ { fill: colors.success300, fillTransparent: colors.success300a20, stroke: colors.success500 },
{
fill: colors.successVariant,
fillTransparent: colors.successVarianta20,
- stroke: colors.successVariant
+ stroke: colors.successVariantDark
},
{
fill: colors.warningVariant,
stroke: colors.warningVariantDark
},
{ fill: colors.warningAccent, fillTransparent: colors.warningAccenta20, stroke: colors.warning },
- { fill: colors.error500, fillTransparent: colors.error500a20, stroke: colors.error500 }
+ { fill: colors.error400, fillTransparent: colors.error400a20, stroke: colors.error700 }
];
export const PROJECT_KEY_MAX_LEN = 400;