File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
components/Topics/Topic/Statistics Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,11 @@ const Metrics: React.FC = () => {
44
44
if ( data . progress ) {
45
45
return (
46
46
< S . ProgressContainer >
47
+ < S . ProgressPct >
48
+ { Math . floor ( data . progress . completenessPercent || 0 ) } %
49
+ </ S . ProgressPct >
47
50
< S . ProgressBarWrapper >
48
51
< ProgressBar completed = { data . progress . completenessPercent || 0 } />
49
- < span > { Math . floor ( data . progress . completenessPercent || 0 ) } %</ span >
50
52
</ S . ProgressBarWrapper >
51
53
< ActionButton
52
54
onClick = { async ( ) => {
Original file line number Diff line number Diff line change @@ -42,3 +42,10 @@ export const ProgressBarWrapper = styled.div`
42
42
align-items: center;
43
43
width: 280px;
44
44
` ;
45
+
46
+ export const ProgressPct = styled . span `
47
+ font-size: 15px;
48
+ font-weight: bold;
49
+ line-height: 1.5;
50
+ color: ${ ( { theme } ) => theme . statictics . progressPctColor } ;
51
+ ` ;
Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ const baseTheme = {
291
291
} ,
292
292
statictics : {
293
293
createdAtColor : Colors . neutral [ 50 ] ,
294
+ progressPctColor : Colors . neutral [ 100 ] ,
294
295
} ,
295
296
progressBar : {
296
297
backgroundColor : Colors . neutral [ 3 ] ,
You can’t perform that action at this time.
0 commit comments