File tree Expand file tree Collapse file tree 5 files changed +22
-9
lines changed Expand file tree Collapse file tree 5 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -70,14 +70,20 @@ export const ProgressBar = ({ className }) => {
70
70
if ( activeStepTitle === stepNames . staff ) {
71
71
activeStepTitle = stepNames . submission ;
72
72
}
73
+ const stepIndex = stepOrders . indexOf ( activeStepTitle ) + 1 ;
74
+ const totalSteps = stepOrders . length ;
73
75
74
76
return (
75
77
< Navbar className = { classNames ( 'px-0' , className ) } expand = { stepOrders . length > 4 ? 'lg' : 'md' } >
76
- < Navbar . Toggle className = "w-100 border-0 " >
78
+ < Navbar . Toggle className = "w-100 border-primary " >
77
79
< div className = "d-flex justify-content-between m-0 h3" >
78
80
< span className = "d-flex" >
79
81
< Icon src = { ArrowForwardIos } className = "mr-2" />
80
82
{ formatMessage ( stepLabels [ activeStepTitle ] ) }
83
+ { formatMessage ( messages . step , {
84
+ stepIndex,
85
+ totalSteps,
86
+ } ) }
81
87
</ span >
82
88
< Icon src = { ArrowDropUpDown } />
83
89
</ div >
Original file line number Diff line number Diff line change 32
32
color : white ;
33
33
border-radius : 100% ;
34
34
}
35
- .active {
36
- border-bottom : 2px solid black ;
37
- }
38
35
}
39
36
40
37
@mixin navbar-collapse-definition {
41
38
width : 100% ;
42
39
flex-direction : column ;
43
40
align-items : start ;
44
- border-top : 1px solid black ;
45
- padding : 0 map-get ($spacers , 3 );
41
+ padding : 0 ;
46
42
47
43
.ora-progress-divider {
48
44
display : none ;
49
45
}
50
46
51
47
.ora-progress-nav {
52
48
width : 100% ;
53
- margin : 0 0.25rem ;
49
+ & .is-active {
50
+ border : none ;
51
+ background-color : $light ;
52
+ }
53
+ }
54
+ .nav-icon {
55
+ margin-left : map-get ($spacers , 3 );
54
56
}
55
57
}
56
58
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ const messages = defineMessages({
26
26
defaultMessage : 'My grade' ,
27
27
description : 'My Grade step progress indicator' ,
28
28
} ,
29
+ step : {
30
+ id : 'frontend-app-ora.ProgressBar.step' ,
31
+ defaultMessage : ' (Step {stepIndex}/{totalSteps})' ,
32
+ description : 'Step progress indicator' ,
33
+ } ,
29
34
} ) ;
30
35
31
36
export default messages ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const messages = defineMessages({
7
7
id : 'frontend-app-ora.StepProgressIndicator.progress' ,
8
8
} ,
9
9
gradeNextPeerOptional : {
10
- defaultMessage : 'Grade next peer(optional)' ,
10
+ defaultMessage : 'Grade next peer (optional)' ,
11
11
description : 'When peer response is optional' ,
12
12
id : 'frontend-app-ora.StepProgressIndicator.optional' ,
13
13
} ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const messages = defineMessages({
30
30
} ,
31
31
optional : {
32
32
id : 'ora-mfe.ModalActions.optionalPeerResponse' ,
33
- defaultMessage : '(optional)' ,
33
+ defaultMessage : ' (optional)' ,
34
34
description : 'When peer response is optional' ,
35
35
} ,
36
36
} ) ;
You can’t perform that action at this time.
0 commit comments