@@ -136,10 +136,10 @@ export default {
136
136
},
137
137
isStepReversed (stepName ) {
138
138
/**
139
- * NC and ND steps are reversed: unlike BY and SA , they are selected when the user
139
+ * NC, ND and SA steps are reversed: unlike BY, they are selected when the user
140
140
* answers no, and not selected when the user answers yes
141
141
*/
142
- return stepName === ' NC' || stepName === ' ND '
142
+ return [ ' NC' , ' ND ' , ' SA ' ]. indexOf ( stepName) > - 1
143
143
},
144
144
nextButtonEnabledState (stepId ) {
145
145
/**
@@ -160,8 +160,9 @@ export default {
160
160
this .$store .commit (' setSelected' , { stepName, isSelected })
161
161
// When the user first selects a license attribute, the dropdown step's Next button should be enabled
162
162
// as the dropdown will be populated with the selected license from the state
163
- if (this .steps [5 ].selected === undefined && stepName === ' BY' ) {
164
- this .steps [5 ].selected = true
163
+ const DROPDOWNSTEP = 5
164
+ if (this .steps [DROPDOWNSTEP ].selected === undefined && stepName === ' BY' ) {
165
+ this .$set (this .steps , DROPDOWNSTEP , { ... this .steps [DROPDOWNSTEP ], selected: true })
165
166
}
166
167
}
167
168
this .$set (this .steps , stepId, { ... this .steps [stepId], selected: isSelected })
@@ -308,7 +309,7 @@ export default {
308
309
const stepId = this .steps [step].id
309
310
const stepName = this .steps [step].name
310
311
const isStepSelected = this .steps [step].selected
311
- const isAttrSelected = this . $store . state .currentLicenseAttributes [stepName]
312
+ const isAttrSelected = state .currentLicenseAttributes [stepName]
312
313
if (this .isLicenseAttribute (stepName) && isStepSelected !== isAttrSelected) {
313
314
this .$set (this .steps , stepId, { ... this .steps [stepId], selected: isAttrSelected })
314
315
this .updateDisabledAndVisibleSteps (stepName, isAttrSelected)
@@ -345,6 +346,7 @@ export default {
345
346
}
346
347
.stepper-card :last-of-type {
347
348
border-bottom : 2px solid #D8D8D8 ;
349
+ margin-bottom : 15rem ;
348
350
}
349
351
.stepper-card-header {
350
352
background-color : transparent ;
@@ -404,28 +406,34 @@ export default {
404
406
.inactive .vocab.h5b {
405
407
color : #B0B0B0 ;
406
408
}
407
- .step-navigation {
408
- margin : 13px 0 13px -4px ;
409
- }
410
- .pagination-next {
411
- background-color : #04A635 ;
412
- color : white !important ;
413
- font-family : Roboto Condensed ,sans-serif ;
414
- font-style : normal ;
415
- font-weight : 500 ;
416
- font-size : 18px ;
417
- line-height : 24px ;
418
- }
419
- .pagination-next.disabled {
420
- background-color : #D8D8D8 ;
421
- }
422
- .pagination-next.disabled :hover ,
423
- .pagination-next.disabled :active {
424
- box-shadow : none ;
425
- border : 1px solid transparent ;
409
+ .stepper-card .b-radio.radio input [type = radio ]:not (:disabled ) + .check {
410
+ border-color : rgba (51 , 51 , 51 , 0.2 );
411
+ }
412
+ .stepper-card .b-radio.radio :hover input [type = radio ]:not (:disabled ) + .check {
413
+ border : 4px solid #0464E1 ;
426
414
}
427
- .slide-enter-active {
428
- /* transition: all .3s ease;*/
415
+ .step-navigation {
416
+ margin : 13px 0 13px -4px ;
417
+ }
418
+ .pagination-next {
419
+ background-color : #04A635 ;
420
+ color : white !important ;
421
+ font-family : Roboto Condensed ,sans-serif ;
422
+ font-style : normal ;
423
+ font-weight : 500 ;
424
+ font-size : 18px ;
425
+ line-height : 24px ;
426
+ }
427
+ .pagination-next.disabled {
428
+ background-color : #D8D8D8 ;
429
+ }
430
+ .pagination-next.disabled :hover ,
431
+ .pagination-next.disabled :active {
432
+ box-shadow : none ;
433
+ border : 1px solid transparent ;
434
+ }
435
+ .slide-enter-active {
436
+ /* transition: all .3s ease;*/
429
437
animation : slide-down .5s ;
430
438
}
431
439
.slide-leave-active {
0 commit comments