@pocketprep/ui-kit 3.4.80 → 3.4.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@pocketprep/ui-kit.js +1182 -1172
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +4 -4
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/Quiz/Question/ChoicesContainer.vue +9 -0
- package/lib/components/Quiz/Question/MatrixChoicesContainer.vue +1 -1
- package/lib/components/Quiz/Question/MobileMatrixChoicesContainer.vue +16 -2
- package/lib/components/Quiz/Question/MobileMatrixRadioGroup.vue +2 -1
- package/lib/components/Quiz/Question/Summary.vue +7 -0
- package/lib/components/Quiz/Question.vue +11 -0
- package/package.json +1 -1
|
@@ -107,6 +107,11 @@
|
|
|
107
107
|
</div>
|
|
108
108
|
<div
|
|
109
109
|
class="uikit-question-choices-container__choice-text"
|
|
110
|
+
:class="{
|
|
111
|
+
'uikit-question-choices-container__choice-text--review-mode':
|
|
112
|
+
reviewMode,
|
|
113
|
+
}"
|
|
114
|
+
v-breakpoint:questionEl="breakpoints"
|
|
110
115
|
:tabindex="showAnswers ? -1 : 0"
|
|
111
116
|
:role="isMCR
|
|
112
117
|
? 'checkbox'
|
|
@@ -741,6 +746,10 @@ export default class ChoicesContainer extends Vue {
|
|
|
741
746
|
|
|
742
747
|
&__choice-text {
|
|
743
748
|
outline: none;
|
|
749
|
+
|
|
750
|
+
&--review-mode#{&}--mobile {
|
|
751
|
+
max-width: 285px;
|
|
752
|
+
}
|
|
744
753
|
}
|
|
745
754
|
|
|
746
755
|
&__toggle-explanation {
|
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
/>
|
|
47
47
|
<div
|
|
48
48
|
class="uikit-question-mobile-matrix-choices-container__row-label"
|
|
49
|
+
:class="{
|
|
50
|
+
'uikit-question-mobile-matrix-choices-container__row-label--review-mode':
|
|
51
|
+
showMatrixAnswers || reviewMode,
|
|
52
|
+
}"
|
|
49
53
|
v-dark="isDarkMode"
|
|
50
54
|
>
|
|
51
55
|
{{ stripHtmlTags(rowLabel) }}
|
|
@@ -547,7 +551,8 @@ export default class MobileMatrixChoicesContainer extends Vue {
|
|
|
547
551
|
|
|
548
552
|
.uikit-question-mobile-matrix-choices-container {
|
|
549
553
|
width: 100%;
|
|
550
|
-
max-width:
|
|
554
|
+
max-width: 492px;
|
|
555
|
+
|
|
551
556
|
&:not(&--mobile) {
|
|
552
557
|
display: none
|
|
553
558
|
}
|
|
@@ -635,6 +640,8 @@ export default class MobileMatrixChoicesContainer extends Vue {
|
|
|
635
640
|
|
|
636
641
|
&__row-label-correct-icon {
|
|
637
642
|
color: $cadaverous;
|
|
643
|
+
width: 18px;
|
|
644
|
+
height: 18px;
|
|
638
645
|
|
|
639
646
|
&--dark {
|
|
640
647
|
color: $jungle-green;
|
|
@@ -660,9 +667,15 @@ export default class MobileMatrixChoicesContainer extends Vue {
|
|
|
660
667
|
&--dark {
|
|
661
668
|
color: $barely-background;
|
|
662
669
|
}
|
|
670
|
+
|
|
671
|
+
&--review-mode {
|
|
672
|
+
width: 285px;
|
|
673
|
+
}
|
|
663
674
|
}
|
|
664
675
|
|
|
665
676
|
&__toggle-row-icon {
|
|
677
|
+
position: absolute;
|
|
678
|
+
margin-top: 8px;
|
|
666
679
|
margin-left: 8px;
|
|
667
680
|
color: $brand-blue;
|
|
668
681
|
|
|
@@ -728,12 +741,13 @@ export default class MobileMatrixChoicesContainer extends Vue {
|
|
|
728
741
|
&__checkbox-label {
|
|
729
742
|
&--distractor {
|
|
730
743
|
text-decoration: line-through;
|
|
744
|
+
color: $ash;
|
|
731
745
|
}
|
|
732
746
|
}
|
|
733
747
|
|
|
734
748
|
&__radio-btns {
|
|
735
749
|
width: 100%;
|
|
736
|
-
max-width:
|
|
750
|
+
max-width: 492px;
|
|
737
751
|
}
|
|
738
752
|
}
|
|
739
753
|
</style>
|
|
@@ -110,7 +110,7 @@ const stripHtmlTags = (string?: string) => {
|
|
|
110
110
|
align-items: flex-start;
|
|
111
111
|
align-self: stretch;
|
|
112
112
|
padding: 11px 15px 12px 15px;
|
|
113
|
-
max-width:
|
|
113
|
+
max-width: 492px;
|
|
114
114
|
border: 0.5px solid rgba($pewter, 0.85);
|
|
115
115
|
border-top: none;
|
|
116
116
|
}
|
|
@@ -131,6 +131,7 @@ const stripHtmlTags = (string?: string) => {
|
|
|
131
131
|
|
|
132
132
|
&--distractor {
|
|
133
133
|
text-decoration: line-through;
|
|
134
|
+
color: $ash
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
137
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
ref="uikit-question-summary"
|
|
6
6
|
class="uikit-question-summary"
|
|
7
7
|
:class="{
|
|
8
|
+
'uikit-question-summary--matrix-question': isMatrixQuestion,
|
|
8
9
|
'uikit-question-summary--matrix-question-review-mode': isMatrixQuestion && reviewMode,
|
|
9
10
|
}"
|
|
10
11
|
>
|
|
@@ -209,6 +210,10 @@ export default class Summary extends Vue {
|
|
|
209
210
|
box-shadow: 0 1px 4px 0 rgba($jet, 0.3);
|
|
210
211
|
}
|
|
211
212
|
|
|
213
|
+
&--matrix-question {
|
|
214
|
+
max-width: 518px;
|
|
215
|
+
}
|
|
216
|
+
|
|
212
217
|
&--matrix-question-review-mode#{&}--tablet-landscape {
|
|
213
218
|
display: inline-block;
|
|
214
219
|
}
|
|
@@ -239,6 +244,8 @@ export default class Summary extends Vue {
|
|
|
239
244
|
}
|
|
240
245
|
|
|
241
246
|
&__summary-toggle-explanation-icon {
|
|
247
|
+
position: absolute;
|
|
248
|
+
margin-top: 4px;
|
|
242
249
|
margin-left: 5px;
|
|
243
250
|
display: none;
|
|
244
251
|
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
'uikit-question__main--show-side': (showExplanation && !showPaywall) || showPassageAndImage,
|
|
32
32
|
'uikit-question__main--unanswered': showAnswers && !isMCR && isUnanswered && !isCorrect,
|
|
33
33
|
'uikit-question__main--mcr': isMCR,
|
|
34
|
+
'uikit-question__main--mcr-review-mode': isMCR && reviewMode,
|
|
34
35
|
'uikit-question__main--matrix-question-review-mode': isMatrixQuestion && reviewMode,
|
|
35
36
|
}"
|
|
36
37
|
>
|
|
@@ -1590,6 +1591,16 @@ export default class Question extends Vue {
|
|
|
1590
1591
|
width: 100%;
|
|
1591
1592
|
padding-right: 42px;
|
|
1592
1593
|
}
|
|
1594
|
+
|
|
1595
|
+
&--matrix-question-review-mode#{&}--mobile {
|
|
1596
|
+
overflow-y: scroll;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
&--mcr-review-mode#{&}--mobile {
|
|
1600
|
+
overflow-y: scroll;
|
|
1601
|
+
width: 100%;
|
|
1602
|
+
padding-right: 17px;
|
|
1603
|
+
}
|
|
1593
1604
|
}
|
|
1594
1605
|
|
|
1595
1606
|
&__right-side {
|