@pocketprep/ui-kit 3.4.71 → 3.4.72

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.
@@ -143,6 +143,10 @@
143
143
  :review-mode="reviewMode"
144
144
  :show-answers="showMatrixAnswers"
145
145
  class="uikit-question-matrix-choices-container__radio-btns"
146
+ :class="{
147
+ 'uikit-question-matrix-choices-container__radio-btns--three-columns':
148
+ numberOfMatrixColumnLabels === 3,
149
+ }"
146
150
  :choices="getRadioRowChoices(rowIndex)"
147
151
  :is-dark-mode="isDarkMode"
148
152
  :disabled="false"
@@ -488,22 +492,17 @@ export default class MatrixChoicesContainer extends Vue {
488
492
  }
489
493
 
490
494
  &__column-row-header {
491
- width: 286px;
492
-
493
- &--tablet-landscape {
494
- width: 285px;
495
- }
496
-
497
- &--tablet-portrait {
498
- width: 275px;
499
- }
495
+ width: 290px;
496
+ margin-right: 16px;
500
497
 
501
498
  &--two-columns {
502
- width: 303px;
499
+ width: 288px;
500
+ margin-right: 16px;
503
501
  }
504
502
 
505
503
  &--radio-btn-three-columns {
506
- width: 276px;
504
+ width: 290px;
505
+ margin-right: 16px;
507
506
  }
508
507
  }
509
508
 
@@ -512,7 +511,7 @@ export default class MatrixChoicesContainer extends Vue {
512
511
  hyphens: auto;
513
512
 
514
513
  &:not(:last-child) {
515
- margin-right: 11px;
514
+ margin-right: 16px;
516
515
  }
517
516
 
518
517
  &--tablet-landscape {
@@ -528,14 +527,16 @@ export default class MatrixChoicesContainer extends Vue {
528
527
  }
529
528
 
530
529
  &--two-columns {
530
+ width: 88px;
531
+
531
532
  &:not(:last-child) {
532
- margin-right: 24px;
533
+ margin-right: 16px;
533
534
  }
534
535
  }
535
536
 
536
537
  &--radio-btn-three-columns {
537
538
  &:not(:last-child) {
538
- margin-right: 15px;
539
+ margin-right: 16px;
539
540
  }
540
541
  }
541
542
  }
@@ -622,7 +623,7 @@ export default class MatrixChoicesContainer extends Vue {
622
623
  }
623
624
 
624
625
  &__choice-text {
625
- width: 303px;
626
+ width: 279px;
626
627
  min-height: fit-content;
627
628
  color: $brand-black;
628
629
  font-size: 16.5px;
@@ -633,12 +634,12 @@ export default class MatrixChoicesContainer extends Vue {
633
634
 
634
635
  &--two-columns {
635
636
  width: 279px;
636
- margin-right: 24px;
637
+ margin-right: 14px;
637
638
  }
638
639
 
639
640
  &--radio-btn-two-columns {
640
641
  width: 279px;
641
- margin-right: 12px;
642
+ margin-right: 14px;
642
643
  }
643
644
 
644
645
  &--dark {
@@ -668,7 +669,11 @@ export default class MatrixChoicesContainer extends Vue {
668
669
  display: flex;
669
670
 
670
671
  &--two-columns {
671
- width: 80px;
672
+ width: 88px;
673
+
674
+ &:not(&:last-child) {
675
+ margin-right: 16px;
676
+ }
672
677
  }
673
678
 
674
679
  .uikit-checkbox--disabled {
@@ -677,14 +682,13 @@ export default class MatrixChoicesContainer extends Vue {
677
682
  }
678
683
 
679
684
  &__clickable-checkbox {
680
- width: 36px;
681
- height: 36px;
685
+ width: 40px;
686
+ height: 40px;
682
687
  cursor: pointer;
683
688
  display: flex;
684
689
  align-items: center;
685
690
  justify-content: center;
686
- margin-top: -8px;
687
- margin-left: -8px;
691
+ margin-top: -10px;
688
692
 
689
693
  &--review {
690
694
  cursor: default;
@@ -718,6 +722,13 @@ export default class MatrixChoicesContainer extends Vue {
718
722
  }
719
723
  }
720
724
 
725
+ &__radio-btns {
726
+ &--three-columns {
727
+ position: relative;
728
+ left: 6px;
729
+ }
730
+ }
731
+
721
732
  &__radio-btn-correct-answer-icon {
722
733
  margin-top: -10px;
723
734
  width: 21px;
@@ -92,7 +92,11 @@ const selectChoice = (choiceKey: string) => {
92
92
  width: 72px;
93
93
 
94
94
  &--two-options {
95
- width: 80px;
95
+ width: 88px;
96
+
97
+ &:first-child {
98
+ margin-right: 16px;
99
+ }
96
100
  }
97
101
 
98
102
  &:last-child {
@@ -135,6 +135,7 @@
135
135
  'uikit-question__choices--correct': showAnswers && isMCR && isCorrect,
136
136
  'uikit-question__choices--incorrect':
137
137
  showAnswers && (isMCR || isUnanswered) && !isCorrect && !isTeachReview,
138
+ 'uikit-question__choices--matrix': isMatrixQuestion,
138
139
  'uikit-question__choices--unanswered': showAnswers && !isMCR && isUnanswered && !isCorrect,
139
140
  'uikit-question__choices--show-stats': globalMetrics,
140
141
  'uikit-question__choices--no-actions': !(isMCR || isUnanswered || isMatrixQuestion)
@@ -1896,6 +1897,10 @@ export default class Question extends Vue {
1896
1897
  &--incorrect#{&}--unanswered:not(&--show-stats) {
1897
1898
  margin-bottom: 71px;
1898
1899
  }
1900
+
1901
+ &--matrix {
1902
+ max-width: 518px;
1903
+ }
1899
1904
  }
1900
1905
 
1901
1906
  &__unanswered-label {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.4.71",
3
+ "version": "3.4.72",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {